#include <bits/stdc++.h>
using namespace std;
vector<long double> v;
bool isPerfectSquare(long double x) {
  long double sr = sqrt(x);
  return ((sr - floor(sr)) == 0);
}
bool printFibonacciNumbers(long double n) {
  long double f = (5 * n * n + 4);
  long double s = (5 * n * n - 4);
  if (isPerfectSquare(f) or isPerfectSquare(s))
    return true;
  else
    return false;
}
int main() {
  long double n;
  cin >> n;
  if (printFibonacciNumbers(n)) {
    long long int k = n;
    cout << 0 << " " << 0 << " " << k;
  } else
    cout << "I'm too stupid to solve this problem";
}
