#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a, b, c, aux = 1;
  cin >> n;
  vector<int> f;
  f.push_back(0);
  f.push_back(1);
  for (int i = 2; f[i - 1] < n + 1; i++) {
    f.push_back(f[i - 2] + f[i - 1]);
    aux++;
  }
  for (int i = 0; i < aux; i++) {
    a = f[i];
    for (int j = 0; j < aux; j++) {
      b = f[j];
      for (int k = 0; k < aux; k++) {
        c = f[k];
        if (a + b + c == n) {
          cout << a << " " << b << " " << c << endl;
          return 0;
        }
      }
    }
  }
  cout << "I'm too stupid to solve this problem" << endl;
  return 0;
}
