import re S=re.sub s="*one*two*three*four*five*six*seven*eight*nine*one hundred".split('*') for i in range(1,input()+1):a=s[i/10];b=s[i%10];print S('neth','nth',S('irth','ird',S(' te',' t',S('reet','irt',S('oneth','first',S('twenth','second',S('vet','ft',S('tt','t',S('ot','ent',S('-\.','.',S(' ty-',' ',S('yt','iet',S('urty','rty',S('dty','d',S('-?\.t','t',S('onety-(\w*)\.','\\1teen.',S('onety-two','twelve',S('onety-one','eleven',"The %sty-%s.th positive integer is %sty-%s."%(a,b,a,b)))))))))))))))))))