#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, i, r, y = 0, l, j, k, g, z = 0, t = 0;
  cin >> n;
  vector<long long> a;
  vector<long long>::iterator x;
  a.push_back(0);
  a.push_back(1);
  l = 1;
  long long p = 0;
  while (z < n) {
    z = l + p;
    a.push_back(z);
    p = l;
    l = z;
  }
  if (n == 0) {
    cout << "0"
         << " "
         << "0"
         << " "
         << "0" << endl;
  } else if (n == 1) {
    cout << "0"
         << " "
         << "0"
         << " "
         << "1" << endl;
  } else if (n == 2) {
    cout << "0"
         << " "
         << "1"
         << " "
         << "1" << endl;
  } else if (n == 3) {
    cout << "0"
         << " "
         << "1"
         << " "
         << "2" << endl;
  } else {
    t = a.size();
    cout << a[t - 2] << " " << a[t - 4] << " " << a[t - 5] << endl;
  }
  return 0;
}
