#include <bits/stdc++.h>
int main(void) {
  int decimal[3];
  int binary = 0;
  int base = 1;
  int i;
  for (i = 0; i < 3; i++) {
    scanf("%d", &decimal[i]);
    while (decimal[i] > 0) {
      binary = binary + (decimal[i] % 2) * base;
      decimal[i] = decimal[i] / 2;
      base = base * 10;
    }
    printf(" %d\n", binary);
  }
  return 0;
}
