#include <stdio.h>

#define NUM (100)

void swap(int x, int y, int z) {
	int box[][2] = { x,y,z};
	
	box[][0] = &box[][1];
	box[][1] = &box[][0];
	
	box[][0] = &box[][2];
	box[][2] = &box[][0];
	
}
	

int main(void) {
	char buf[NUM];
	int i = 0,X,Y,Z;
	
	printf("please enter 3 natural numbers.\n");
	
	while(i>2){
		fgets(buf,NUM-1,stdin);
		if(i==0)
		X = atoi(buf);
		if(i==1)
		Y = atoi(buf);
		else
		Z = atoi(buf);
	}
	
	swap(X,Y,Z);
	
	return 0;
}