output_description: For each question, print 1 if the text includes P_i, or print 0 otherwise.
input_description: In the first line, a text T is given. In the second line, an integer Q
  denoting the number of queries is given. In the following Q lines, the
  patterns P_i are given respectively.
attempt: T = input()
  n = int(input())
  
  
  for i in range(n):
      P = input()
  
      if T in P:
          print(1)
      else:
          print(0)
  
problem_description: String Search
  
  Determine whether a text T includes a pattern P. Your program should answer
  for given queries consisting of P_i.
samples: [{"input": "aabaaa\n    4\n    aa\n    ba\n    bb\n    xyz", "output": "1\n    1\n    0\n    0"}]