#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long d[50], n;
  d[0] = 0;
  d[1] = 1;
  for (long long i = 2; i < 50; i++) {
    d[i] = d[i - 1] + d[i - 2];
  }
  cin >> n;
  long long a, b, c, j;
  for (long long i = 0; i < 50; i++) {
    if (d[i] <= n) {
      j = i;
    }
  }
  a = d[j - 1];
  b = d[lower_bound(d, d + 50, n - a) - d];
  c = d[lower_bound(d, d + 50, n - a - b) - d];
  cout << c << " " << b << " " << a;
}
