#include <stdio.h>
void swap(char *x, char *y){
  char *temp;
  *temp = *x;
  *x = *y;
  *y = *temp;
}

int main(void){
  char a, b, c;
  scanf("%s %s %s", &a, &b, &c);
  swap(a,b);
  swap(a,c);
  print("%s %s %s", a, b, c);
  return 0;
}
  