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