sg,tz=map(int,input().split()) bz=(sg-100)*0.9 if tz>bz*1.1: print("fat") elif tz<bz*0.9: print("thin") else: print("standard")