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