program example
	implicit none

	integer X,Y,Z,A
    
    read(*,*) X,Y,Z
    
    A=X
    
    X=Y
    
    Y=A
    
    A=X
    
    X=Z
    
    Z=A
    
    write(*,"(i3,1x,i3,1x,i3)") X,Y,Z
    

end program example