#include <stdio.h>

int main(void) {
  int x, y, z;
  int buffer;
  scanf("%d, %d, %d", &x, &y, &z);
  buffer = x;
  x = y;
  y = buffer;
  buffer = x;
  x = z;
  z = buffer;
  printf("%d %d %d", x, y, z);
  return 0;
}
