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