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