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