io.write((function (a, b) return b," ",a,"\n" end)(io.stdin:read("*l"):match("(%u)%s(%u)")))