#include <stdio.h>
 int main()
 { 
    int X, Y, Z ; 
    scanf("%d%d%d", &X, &Y, &Z); 
    printf("%d\nX = %d\nY =%d\nX= %d\n",X,Y,Z);
     X = Y; Y = Z ; Y = X ;
    printf("%d\nX = %d\nY = %d\nZ = %d\n",X,Y,Z); 
    return 0;
 } 