#include<stdio.h>
int main()
{
	int n;
	int mask = 1;
	scanf("%d", &n);
	if(n<0)
	{
		printf("fu ");
		n=(-1)*n;
	}
	int x = n;
	while(x>9)
	{ 
		x/=10;
		mask *= 10;
	}
	
	do
	{
		int d;
		d = n / mask;
		switch(d)
	    {
	    	case 0:
	    		printf("ling"); break;
			case 1:
				printf("yi"); break;
			case 2:
				printf("er"); break;
			case 3:
				printf("san"); break;
			case 4:
				printf("si"); break;
			case 5:
				printf("wu"); break;
			case 6:
				printf("liu"); break;
			case 7:
				printf("qi"); break;
			case 8:
				printf("ba"); break;
			case 9:
				printf("jiu"); break;
			default:
				break;
		}
		if(mask>9)
		{
			printf(" ");
		}
		n %= mask;
		mask /= 10;
    }while(mask>0);
    
	return 0;
				
}