import math H, W = map(int, input().split()) x = math.gcd(H, W) H //= x print(['YOKO', 'TATE'][H == 4])