package top.ai4u.main.MLalgorithm;

import java.util.Scanner;

public class Test {

    public static void main(String[] args){
        Scanner scanner=new Scanner(System.in);
        long A=scanner.nextLong();
        long B=scanner.nextLong();
        System.out.println(A+" "+B);
        A=A^B;
        B=B^A;
        A=A^B;
        System.out.println(A+" "+B);
    }
}