/*#include <bits/stdc++.h>
using namespace std;
string haha(char x)
{
if(x=='1')
{
return "일";
}
if(x=='2')
{
return "이";
}
if(x=='3')
{
return "삼";
}
if(x=='4')
{
return "사";
}
if(x=='5')
{
return "오";
}
if(x=='6')
{
return "육";
}
if(x=='7')
{
return "칠";
}
if(x=='8')
{
return "팔";
}
if(x=='9')
{
return "구";
}
}
int main()
{
string s;
cin>>s;
string dab[50];
int top=0;
int b=0;
int current=s.size();
int ssss=0;
int cnt=0;
if(s.size()>=5)
{
cnt=0;
for(int i=s.size()-1; i>=s.size()-4; i--)
{
if(s[i]=='0')
{
cnt++;
current--;
continue;
}
if(cnt==1)
{
top++;
dab[top]="십";
}
if(cnt==2)
{
top++;
dab[top]="백";
}
if(cnt==3)
{
top++;
dab[top]="천";
}
top++;
current--;
cnt++;
dab[top]=haha(s[i]);
}
//printf("%d", current);
while(current>=0)
{
if(ssss==0)
{
top++;
dab[top]="만";
}
if(ssss==1&¤t)
{
top++;
dab[top]="억";
}
if(current-4>=0)
{
cnt=0;
for(int i=current-1; i>=current-4; i--)
{
if(s[i]=='0')
{
b++;
cnt++;
//current--;
continue;
}
if(cnt==1)
{
top++;
dab[top]="십";
}
if(cnt==2)
{
top++;
dab[top]="백";
}
if(cnt==3)
{
top++;
dab[top]="천";
}
top++;
dab[top]=haha(s[i]);
cnt++;
}
current=current-4;
}
else
{
cnt=0;
for(int i=current-1; i>=0; i--)
{
if(s[i]=='0')
{
cnt++;
// current--;
continue;
}
if(cnt==1)
{
top++;
dab[top]="십";
}
if(cnt==2)
{
top++;
dab[top]="백";
}
if(cnt==3)
{
top++;
dab[top]="천";
}
cnt++;
top++;
dab[top]=haha(s[i]);
}
current=-1;
}
ssss++;
}
}
else
{
cnt=0;
for(int i=s.size()-1; i>=0; i--)
{
if(s[i]=='0')
{
cnt++;
//current--;
continue;
}
if(cnt==1)
{
top++;
dab[top]="십";
}
if(cnt==2)
{
top++;
dab[top]="백";
}
if(cnt==3)
{
top++;
dab[top]="천";
}
top++;
dab[top]=haha(s[i]);
cnt++;
}
}
if(s.size()==1&&s[0]=='0')
{
printf("영");
return 0;
}
for(int i=top; i>=1; i--)
{
if(b==4&&dab[i]=="만")
continue;
cout<<dab[i];
}
} //23,456,789*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
}



