import java.io.*; public class No418{ public static void main(String[] args) throws IOException{ String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split(" "); System.out.println(str[1] + " " + str[0]); } }