#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> v;
  v.push_back(0);
  v.push_back(1);
  for (long long i = 2;; i++) {
    v.push_back(v[i - 1] + v[i - 2]);
    if (v[i] >= n) break;
  }
  if (v[v.size() - 1] == n)
    cout << v[v.size() - 2] << " " << v[v.size() - 3] << " " << 0;
  else if (n == 0)
    cout << 0 << " " << 0 << " " << 0;
  else if (n == 1)
    cout << 1 << " " << 0 << " " << 0;
  else {
    cout << "I'm too stupid to solve this problem";
  }
  return 0;
}
