output_description: If S can be obtained by permuting `abc`, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: A, B, C = sorted(map(int, input().split()))
  
  
  def calculate(P, Q, R):
      num = 0
      if abs(P - Q) % 2 == 0:
          num += abs(P - Q) // 2
      else:
          num += 1 + (abs(P - Q) + 1) // 2
          P += 1
          R += 1
  
      if abs(P - R) % 2 == 0:
          num += abs(P - R) // 2
      else:
          num += 1 + (abs(P - R) + 1) // 2
  
      return num
  
  
  ans = min(calculate(C, B, A), calculate(C, A, B), calculate(B, A, C))
  
  print(ans)
  
problem_description: Statement
  
  You are given a string S of length 3 consisting of `a`, `b` and `c`. Determine
  if S can be obtained by permuting `abc`.
samples: [{"input": "bac", "output": "Yes\n    \n\nSwapping the first and second characters in `bac` results in `abc`.\n\n* * *"}, {"input": "bab", "output": "No\n    \n\n* * *"}, {"input": "abc", "output": "Yes\n    \n\n* * *"}, {"input": "aaa", "output": "No"}]