#include <bits/stdc++.h>
using namespace std;
int a[46] = {0, 1};
int main() {
  for (int i = 2; i < 46; i++) a[i] = a[i - 1] + a[i - 2];
  int x;
  cin >> x;
  int j;
  for (j = 0; x != a[j] && j < 46; j++)
    ;
  if (x == a[j]) {
    if (x == 5) {
      cout << a[j - 1] << " " << 1 << " " << 1 << endl;
    }
    if (x == 1) {
      cout << 1 << " " << 0 << " " << 0 << endl;
    }
    if (x == 2) {
      cout << 1 << " " << 1 << " " << 0 << endl;
    }
    if (x == 3) {
      cout << 1 << " " << 1 << " " << 1 << endl;
    }
    if (x == 0) {
      cout << 0 << " " << 0 << " " << 0 << endl;
    }
    if (x > 5) {
      cout << a[j - 1] << " " << a[j - 3] << " " << a[j - 4] << endl;
    }
  } else {
    cout << "I'm too stupid to solve this problem"
         << "\n";
  }
  return 0;
}
