#include <bits/stdc++.h>
using namespace std;
int fib(int number) {
  if (number == 0)
    return 0;
  else if (number == 1)
    return 1;
  else {
    int fibo = 1;
    int fiboPrev = 1;
    for (int i = 2; i < number; ++i) {
      int temp = fibo;
      fibo += fiboPrev;
      fiboPrev = temp;
    }
    return fibo;
  }
}
int foeb(int number) {
  int counter = 0;
  while (true) {
    if (fib(counter) == number) {
      return counter;
      break;
    } else
      counter++;
  }
}
int main() {
  int num, n;
  cin >> num;
  if (num >= 0 && num <= 1000000000) {
    if (num == 0)
      cout << 0 << " " << 0 << " " << 0 << endl;
    else if (num == 1)
      cout << 1 << " " << 0 << " " << 0 << endl;
    else {
      n = foeb(num);
      cout << fib(n - 1) << " " << fib(n - 2) << " " << 0 << endl;
    }
  }
  return 0;
}
