using System;
public class Program
{
static void Interschimb(ref int a, ref int b)
int aux;
aux=a;
a=b;
b=aux;
}
public static void Main()
int a=int.Parse(Console.ReadLine());
int b=int.Parse(Console.ReadLine());
Interschimb(ref a, ref b);
Console.WriteLine(a+" "+b);