#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n >= 3) {
    int k = 2;
    int a = 0, b = 0, c = 0;
    while (k--) {
      double a1 = n / ((1 + sqrt(5)) / 2.0);
      if (k == 1) {
        a = round(a1);
        n = a;
      } else
        b = round(a1);
    }
    cout << a << " " << b << " " << 0 << endl;
  } else if (n == 2)
    cout << 1 << " " << 1 << " " << 0 << endl;
  else if (n == 1)
    cout << 1 << " " << 0 << " " << 0 << endl;
  else if (n == 0)
    cout << 0 << " " << 0 << " " << 0 << endl;
}
