for(r=0;;r.match(/3|4|ARR/)&&print(s))r=readline(s=r)