#include <bits/stdc++.h>
using namespace std;
int compare(const void* a, const void* b) { return (*(int*)a - *(int*)b); }
int cmp(double a, double b) {
  if (fabs(a - b) <= (1e-8)) return 0;
  if (a < b) return -1;
  return 1;
}
int main() {
  long long int fib[100];
  int i;
  fib[0] = 0;
  fib[1] = 1;
  fib[2] = 1;
  int k = 3;
  long long int n;
  cin >> n;
  do {
    fib[k] = fib[k - 1] + fib[k - 2];
    k++;
  } while (fib[k - 1] < n);
  long long int a, b, c;
  bool can = false;
  for (a = 0; a < k && !can; a++) {
    for (b = 0; b < k && !can; b++) {
      for (c = 0; c < k && !can; c++) {
        if (fib[a] + fib[b] + fib[c] == n) {
          cout << fib[a] << " " << fib[b] << " " << fib[c] << endl;
          can = true;
          break;
        }
      }
    }
  }
  if (!can) {
    cout << "I'm too stupid to solve this problem" << endl;
  }
  return 0;
}
