#include <bits/stdc++.h>
using namespace std;
int d[100000];
void xuly() {
  int n;
  cin >> n;
  if (n == 0) {
    cout << 0 << " " << 0 << " " << 0;
    return;
  }
  if (n == 1) {
    cout << 0 << " " << 0 << " " << 1;
    return;
  }
  d[1] = 0;
  d[0] = 1;
  int i = 2;
  while (1) {
    d[i] = d[i - 1] + d[i - 2];
    if (d[i] == n) break;
    i++;
  }
  cout << d[i - 1] << " " << d[i - 3] << " " << d[i - 4];
}
int main() {
  xuly();
  return 0;
}
