#include <bits/stdc++.h>
using namespace std;
int n, i;
int main() {
  cin >> n;
  vector<int> v(2);
  v[0] = v[1] = 1;
  while (v.back() < 1e9) v.push_back(v.back() + v[v.size() - 2]);
  while (v[i++] - n)
    ;
  if (n > 131313.131313131313)
    cout << v[i - 5] << ' ' << v[i - 4] << ' ' << v[i - 2];
  else
    cout << "             0             0             " << n;
}
