#include <bits/stdc++.h>
using namespace std;
long long int fibo[47];
void create();
int main() {
  create();
  long long int n, i, x;
  while (scanf("%I64d", &n) != EOF) {
    if (n == 0)
      printf("0 0 0\n");
    else if (n == 1)
      printf("0 0 1\n");
    else if (n == 2)
      printf("0 1 1\n");
    else if (n == 3)
      printf("1 1 1\n");
    else {
      for (i = 0; i < 47; ++i) {
        if (fibo[i] == n) {
          x = i;
          break;
        }
      }
      printf("%I64d %I64d %I64d\n", fibo[x - 4], fibo[x - 3], fibo[x - 1]);
    }
  }
  return 0;
}
void create() {
  fibo[0] = 0;
  fibo[1] = 1;
  long long int i;
  for (i = 2; i < 47; ++i) {
    fibo[i] = fibo[i - 1] + fibo[i - 2];
  }
  return;
}
