ls = [] while True: try: ls.extend(list(input().split())) except EOFError: break for str in ls: if str == "0": print("Nothing") elif str == "3.14159265": print("pi") elif str == "1112345678999+X": print("九蓮宝燈") elif str == "19m19p19s東南西北白發中+Y": print("Thirteen Orphans") elif str == "くぁwせdrftgyふじこlp": print("さmpぇ") else: while str[-1] == '.': str = str[:-1] print(len(str))