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