output_description: If N is **good** , print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
attempt: N = input()
  # for i in range(1000,10000):
  # print(i)
  # N = str(i)
  if N[0] == N[1] == N[2] == "1":
      print("Yes")
  elif N[0] == N[1] == N[2] == "2":
      print("Yes")
  elif N[0] == N[1] == N[2] == "3":
      print("Yes")
  elif N[0] == N[1] == N[2] == "4":
      print("Yes")
  elif N[0] == N[1] == N[2] == "5":
      print("Yes")
  elif N[0] == N[1] == N[2] == "6":
      print("Yes")
  elif N[0] == N[1] == N[2] == "7":
      print("Yes")
  elif N[0] == N[1] == N[2] == "8":
      print("Yes")
  elif N[0] == N[1] == N[2] == "9":
      print("Yes")
  elif N[1] == N[2] == N[3] == "0":
      print("Yes")
  elif N[1] == N[2] == N[3] == "1":
      print("Yes")
  elif N[1] == N[2] == N[3] == "2":
      print("Yes")
  elif N[1] == N[2] == N[3] == "3":
      print("Yes")
  elif N[1] == N[2] == N[3] == "4":
      print("Yes")
  elif N[1] == N[2] == N[3] == "5":
      print("Yes")
  elif N[1] == N[2] == N[3] == "6":
      print("Yes")
  elif N[1] == N[2] == N[3] == "7":
      print("Yes")
  elif N[1] == N[2] == N[3] == "8":
      print("Yes")
  elif N[1] == N[2] == N[3] == "9":
      print("Yes")
  else:
      print("No")
  
problem_description: Statement
  
  We call a 4-digit integer with three or more consecutive same digits, such as
  1118, **good**.
  
  You are given a 4-digit integer N. Answer the question: Is N **good**?
samples: [{"input": "1118", "output": "Yes\n    \n\nN is **good** , since it contains three consecutive 1.\n\n* * *"}, {"input": "7777", "output": "Yes\n    \n\nAn integer is also **good** when all the digits are the same.\n\n* * *"}, {"input": "1234", "output": "No"}]