s=scan("stdin","") while(seq(s)){a=s[1] for(j in 1:99)a=sub(substr(s[2],j,j),"",a) write(a,1) s=s[-2:0]}