output_description: If the given triple is poor, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: s = str(input())
  n = len(s)
  dp = [[0] * 2 for _ in range(n + 1)]
  dp[0][1] = 1
  for i in range(n):
      p = int(s[i])
      dp[i + 1][0] = min(dp[i][1] + 10 - p, dp[i][0] + p)
      dp[i + 1][1] = min(dp[i][1] + 10 - p - 1, dp[i][0] + p + 1)
  print(dp[-1][0])
  
problem_description: Statement
  
  A triple of numbers is said to be _poor_ when two of those numbers are equal
  but the other number is different from those two numbers.
  
  You will be given three integers A, B, and C. If this triple is poor, print
  `Yes`; otherwise, print `No`.
samples: [{"input": "5 7 5", "output": "Yes\n    \n\nA and C are equal, but B is different from those two numbers, so this triple\nis poor.\n\n* * *"}, {"input": "4 4 4", "output": "No\n    \n\nA, B, and C are all equal, so this triple is not poor.\n\n* * *"}, {"input": "4 9 6", "output": "No\n    \n\n* * *"}, {"input": "3 3 4", "output": "Yes"}]