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: def main():
      N, Q = input().split()
      N = int(N)
      Q = int(Q)
      G = [1] * N
      S = input()
      for _ in range(Q):
          t, d = input().split()
          if d == "L":
              # for i in range(0,N):
              for i in range(0, Q):
                  if S[i] == t and G[i] > 0:
                      if i == 0:
                          G[i] = 0
                      else:
                          G[i - 1] = G[i - 1] + G[i]
                          G[i] = 0
  
          else:  # "R"
              # for i in range(N-1,-1,-1):
              for i in range(N - 1, N - Q - 1, -1):
                  if S[i] == t and G[i] > 0:
                      if i == N - 1:
                          G[i] = 0
                      else:
                          G[i + 1] = G[i + 1] + G[i]
                          G[i] = 0
          # print(G)
      print(sum(G))
  
  
  if __name__ == "__main__":
      main()
  
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."}]