import sys d = {1:'jeden', 2:'dwa', 3:'trzy', 11:'jedenaście', 20:'dwadzieścia', 100:'sto', '-':'minus'} def logika(s): l_s = [] if s[0] == '-': l_s.append(d[s[0]]) s = s[1:] if int(s) > 199: l_s.append('zadużo') return l_s if int(s)>10 and int(s)<20: l_s.append(d[int(s)]) elif int(s) == 0: l_s.append('zero') else: for p, z in enumerate(reversed(s)): if z != '0': l_s.append(d[int(z)*10**p]) return l_s if __name__ == '__main__': for i in sys.argv[1:]: print('{}: {}'.format(i, ' '.join(reversed(logika(i)))))