#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int a = 0, b = 1, f, c = 1;
  vector<int> v;
  while (c < 3 && n != 0) {
    f = a + b;
    if (f == n) {
      v.push_back(a);
      c++;
      n = b;
      a = 0;
      b = 1;
    } else {
      a = b;
      b = f;
    }
  }
  v.push_back(n);
  sort(v.begin(), v.end());
  if (n == 0)
    cout << 0 << " " << 0 << " " << 0;
  else
    cout << v[0] << " " << v[1] << " " << v[2];
  return 0;
}
