from operator import __and__,__or__ from sys import stdout write=stdout.write N,Q=map(int,input().split()) A=["*"]+list(map(int,input().split())) S=["*"]+list(map(int,input())) T=["*"]+list(map(int,input().split())) a_bit=30 V=[[0,(1<>=1 X_append(x) write("\n".join(map(str,X)))