#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int>> fibonacci;
void preprocessing() {
  fibonacci.push_back(make_pair(0, 0));
  fibonacci.push_back(make_pair(1, 1));
  int index = 2;
  while ((fibonacci[index - 1].first + fibonacci[index - 2].first) < 1e9) {
    fibonacci.push_back(make_pair(
        fibonacci[index - 1].first + fibonacci[index - 2].first, index));
    index++;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  preprocessing();
  int n;
  cin >> n;
  if (n == 0)
    cout << 0 << ' ' << 0 << ' ' << 0;
  else if (n == 1)
    cout << 0 << ' ' << 0 << ' ' << 1;
  else if (n == 2)
    cout << 0 << ' ' << 1 << ' ' << 1;
  else {
    for (size_t i = 4; i < fibonacci.size(); i++) {
      if (fibonacci[i].first == n) {
        int index = fibonacci[i].second;
        cout << fibonacci[index - 4].first << ' ' << fibonacci[index - 3].first
             << ' ' << fibonacci[index - 1].first;
        return 0;
      }
    }
  }
}
