import java.util.*; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s1 = in.next(); String s2 = in.next(); System.out.println(s2 + " " + s1); } }