#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  long way[100000];
  way[0] = way[1] = 1;
  long x, y;
  if (n == 0)
    cout << 0 << " " << 0 << " " << 0 << endl;
  else if (n == 1)
    cout << 0 << " " << 0 << " " << 1 << endl;
  else {
    for (int i = 2;; i++) {
      way[i] = way[i - 1] + way[i - 2];
      x = way[i - 1];
      y = way[i - 2];
      if (way[i] >= n) break;
    }
    cout << x << " " << y << " 0" << endl;
  }
}
