output_description: If $p$ is in $s$, print Yes in a line, otherwise No.
input_description: In the first line, the text $s$ is given.  
  In the second line, the pattern $p$ is given.
attempt: l = [x for x in input()]
  l.extend(l)
  ch = [x for x in input()]
  txt = "No"
  for i in range(len(l) - len(ch)):
      for j in range(len(ch)):
          if l[i + j] != ch[j]:
              break
      else:
          txt = "Yes"
          break
  print(txt)
  
problem_description: Ring
  
    
  
  Write a program which finds a pattern $p$ in a ring shaped text $s$.
  
    
  ![](https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE2_ITP1_8_D)
samples: [{"input": "vanceknowledgetoad\n    advance", "output": "Yes"}, {"input": "vanceknowledgetoad\n    advanced", "output": "No"}]