#include <bits/stdc++.h>
int main() {
  int a[4];
  a[0] = 0;
  a[1] = 0;
  a[2] = 0;
  a[3] = 1;
  int n;
  scanf("%d", &n);
  if (n == 0)
    printf("0 0 0\n");
  else if (n == 2)
    printf("0 1 1\n");
  else {
    while (a[2] + a[3] < n) {
      int temp;
      temp = a[2] + a[3];
      a[0] = a[1];
      a[1] = a[2];
      a[2] = a[3];
      a[3] = temp;
    }
    printf("%d %d %d\n", a[0], a[1], a[3]);
  }
}
