N = int(input()) N = abs(N) N_str = str(N) N_len = len(N_str) if N_len == 2: print("YES") else: print("NO")