n = input() if abs(len(n)-2): print("No") else: print("Yes")