r=raw_input x=r().split() i=0 a='' while 1:i+=1;a=(r(a)+'\n')*-~(`i`in x)