h,w = list(map(int, input().split(' '))) if h*4 == w*3: print('YOKO') elif h*3 == w*4: print('TATE') else: print('STRANGE')