#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> fib;
  cin >> n;
  if (n == 3) {
    cout << "1 1 1";
    return 0;
  } else if (n == 0) {
    cout << "0 0 0";
    return 0;
  } else if (n == 1) {
    cout << "1 0 0";
    return 0;
  } else if (n == 2) {
    cout << "1 1 0";
    return 0;
  } else if (n == 5) {
    cout << "3 1 1";
    return 0;
  }
  int n1 = 0, n2 = 1, current_fib = 0;
  do {
    current_fib = n1 + n2;
    n1 = n2;
    n2 = current_fib;
    fib.push_back(current_fib);
  } while (current_fib != n);
  cout << fib[fib.size() - 2] << " " << fib[fib.size() - 4] << " "
       << fib[fib.size() - 5];
}
