fork download
  1. n = input()
  2. for i in range(int(input())):
  3. b = n.find(input())
  4. print(b+1 if b!=-1 else -1)
  5.  
Success #stdin #stdout 0.04s 9676KB
stdin
Standard input is empty
stdout
Standard output is empty