// editor3
#include<stdio.h>
int main()
{
    int x,y,temp;
    scanf("%d %d",&x,&y) 
    printf("%d\n",y); 
    printf("%d\n",x); 
    x=y;
    y=temp;
    temp=y;
    return 0;
}