for(c<-"]"*25;Array(s,t)=readLine split c)println(s+t.drop(s.size+3)+c)