File standardInput readLines map(asNumber)map(v,a:=list;for(i,0,3,a push(v%100);v=v/100|0);a do(writeln(at(2)," ",at(0)," ",at(3)," ",at(1))))