#include <bits/stdc++.h>
using namespace std;
int fibo[50];
int main() {
  int n, last, a = -1, b = -1, c = -1;
  fibo[0] = 0;
  fibo[1] = 1;
  for (int i = 2; fibo[i - 1] + fibo[i - 2] <= 1000000000; i++) {
    fibo[i] = fibo[i - 1] + fibo[i - 2];
    last = i;
  }
  cin >> n;
  if (n == 0) a = 0, b = 0, c = 0;
  if (n == 1) a = 1, b = 0, c = 0;
  if (n == 2)
    a = 1, b = 1, c = 0;
  else {
    for (int i = 4; i <= last; i++)
      if (fibo[i] == n && i - 4 >= 0) {
        a = fibo[i - 1];
        b = fibo[i - 3];
        c = fibo[i - 4];
      }
  }
  if (a > -1)
    cout << c << " " << b << " " << a;
  else
    cout << "I'm too stupid to solve this problem";
  return 0;
}
