package m.shin; import java.util.Scanner; public class Con543 { public static void main(String[] args) { Scanner s = new Scanner(System.in); String[] P = new String[2]; P[1] = s.next(); P[0] = s.next(); s.close(); System.out.println(P[0] + " " + P[1]); } }