program main
      implicit none
      integer x, y, z
      integer a, b, c
      integer a2, b2, c2

      read *, x, y, z
      a = x
      b = y
      c = z

      a2 = b
      b2 = a
      a = a2
      b = b2

      a2 = c
      c2 = a
      a = a2
      c = c2

      print *, a, b, c

end program main