output_description: If there exists an equilateral triangle whose sides have lengths A, B and C,
  print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: N, Q = map(int, input().split())
  s = list(input())
  box = [1] * (N + 2)
  for _ in range(Q):
      k = 1
      t, d = map(str, input().split())
      for j in s:
          if t == j:
              if box[k] > 0:
                  if d == "L":
                      box[k - 1] += box[k]
                      box[k] = 0
                  else:
                      box[k + 1] += box[k]
                      box[k] = 0
          k += 1
  print(sum(box[1 : N + 1]))
  
problem_description: Statement
  
  You are given three integers A, B and C.
  
  Determine if there exists an equilateral triangle whose sides have lengths A,
  B and C.
samples: [{"input": "2 2 2", "output": "Yes\n    \n\n  * There exists an equilateral triangle whose sides have lengths 2, 2 and 2.\n\n* * *"}, {"input": "3 4 5", "output": "No\n    \n\n  * There is no equilateral triangle whose sides have lengths 3, 4 and 5."}]