#include <bits/stdc++.h>
using namespace std;
int x[45];
int main() {
  x[0] = 0;
  x[1] = 1;
  for (int i = 2; i < 45; i++) x[i] = x[i - 1] + x[i - 2];
  int n, idx;
  cin >> n;
  for (int i = 0; i < 45; i++)
    if (x[i] == n) idx = i;
  if (!idx)
    printf("0 0 0\n");
  else
    printf("0 %d %d\n", x[idx - 2], x[idx - 1]);
  return 0;
}
