#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
void solve() {
  long long a = 0, b = 1;
  vector<long long> v;
  v.push_back(a);
  v.push_back(b);
  long long size = 55;
  for (long long i = 1; i < size; i++) {
    long long c = a + b;
    v.push_back(c);
    a = b;
    b = c;
  }
  size = v.size();
  long long n;
  cin >> n;
  for (long long i = 0; i < size; i++) {
    for (long long j = i; j < size; j++) {
      for (long long k = j; k < size; k++) {
        long long sum = v[i] + v[j] + v[k];
        if (sum == n) {
          cout << v[i] << " " << v[j] << " " << v[k] << "\n";
          return;
        }
      }
    }
  }
  cout << "I'm too stupid to solve this problem\n";
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
}
