#include <bits/stdc++.h>
using namespace std;
bool primes[10000001];
int main() {
  ios_base::sync_with_stdio(0);
  long long int n, i, j, w = 0, x = 1, y = 1, z = 2;
  cin >> n;
  if (n > 2) {
    for (i = 0;; i++) {
      if (n == z + y) {
        cout << x << ' ' << w << ' ' << z << endl;
        break;
      }
      w = x;
      x = y;
      y = z;
      z = x + y;
    }
  } else if (n == 2)
    cout << "1 1 0\n";
  else if (n == 1)
    cout << "1 0 0\n";
  else if (n == 0)
    cout << "0 0 0" << endl;
  return 0;
}
