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