#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long int> arr;
  arr.push_back(0);
  arr.push_back(1);
  if (n == 1) {
    cout << 1 << " " << 0 << " " << 0 << endl;
    return 0;
  } else if (n == 2) {
    cout << 1 << " " << 1 << " " << 0 << endl;
    return 0;
  } else if (n == 3) {
    cout << 1 << " " << 1 << " " << 1 << endl;
    return 0;
  } else if (n == 0) {
    cout << 0 << " " << 0 << " " << 0;
    return 0;
  }
  for (long int i = 2; i <= n; i++) {
    arr.push_back(arr[i - 1] + arr[i - 2]);
    if (arr[i] == n) break;
  }
  vector<long int>::iterator l = lower_bound(arr.begin(), arr.end(), n);
  cout << arr[l - 1 - arr.begin()] << " " << arr[l - arr.begin() - 3] << " "
       << arr[l - arr.begin() - 4] << endl;
  return 0;
}
