#include <bits/stdc++.h>
int main() {
  int a, b, i, f, s, x, y, z, w;
  a = 0;
  b = 1;
  scanf("%d", &f);
  if (f == 0)
    printf("0 0 0");
  else if (f == 1) {
    w = 0;
    while (a + b != f) {
      a = b;
      b = (a + b);
    }
    printf("%d %d %d\n", w, a, b);
  } else {
    for (i = 1; i <= 1000000; i++) {
      s = a + b;
      if ((f % s) == a) {
        x = b % f;
        y = x - (a - x);
        z = (a - x) - y;
      }
      a = b;
      b = s;
    }
    printf("%d %d %d\n", x, y, z);
  }
  return 0;
}
