#include <bits/stdc++.h>
using namespace std;
int main() {
  int number;
  vector<int> fibonacci;
  for (int k = 0; k < 5; k++) {
    fibonacci.push_back(0);
  }
  fibonacci.push_back(1);
  cin >> number;
  for (int k = 5; true; k++) {
    int num = fibonacci[k] + fibonacci[k - 1];
    if (num > number) {
      if (number == 2) {
        cout << "1 1 0\n";
        break;
      }
      cout << fibonacci[k - 1] << " " << fibonacci[k - 3] << " "
           << fibonacci[k - 4] << "\n";
      break;
    }
    fibonacci.push_back(num);
  }
  return 0;
}
