import java.util.Scanner; class C{ static final Scanner s=new Scanner(System.in); public static void main(String[]$){ String a=s.next(),b=s.next(); System.out.println(b+" "+a); } }