#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<long> a;
  long i, j, k, n;
  scanf("%ld", &n);
  if (n == 0) {
    printf("%d ", 0);
    printf("%d ", 0);
    printf("%d ", 0);
  } else if (n == 1) {
    printf("%d ", 0);
    printf("%d ", 0);
    printf("%d ", 1);
  } else if (n == 2) {
    printf("%d ", 0);
    printf("%d ", 1);
    printf("%d ", 1);
  } else {
    a.push_back(0);
    a.push_back(1);
    i = 2;
    a.push_back(a[i - 2] + a[i - 1]);
    while (a[i] < n) {
      i++;
      a.push_back(a[i - 2] + a[i - 1]);
    }
    printf("%ld ", a[i - 4]);
    printf("%ld ", a[i - 3]);
    printf("%ld ", a[i - 1]);
  }
  return (0);
}
