#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
const string numbers[]
{
"zero",
"one",
"two",
"three",
"four",
"five",
"six",
"seven",
"eight",
"nine",
};
vector<pair<string, int>> ans;
int n, m; cin >> n >> m;
for (size_t i = n; i <= m; i++)
{
string s;
if (i >= 10)
s = numbers[i / 10] + " " + numbers[i % 10];
else
s = numbers[i % 10];
ans.push_back({ s,i });
}
sort(ans.begin(), ans.end());
for (size_t i = 0; i < ans.size(); i++)
{
cout << ans[i].second << " ";
if (i % 10 == 9)
cout << '\n';
}
return 0;
}