#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 0) {
    cout << 0 << " " << 0 << " " << 0 << endl;
    return 0;
  } else if (n == 1) {
    cout << 0 << " " << 1 << " " << 0 << endl;
    return 0;
  } else if (n == 2) {
    cout << 1 << " " << 1 << " " << 0 << endl;
    return 0;
  }
  long long a = 0;
  long long b = 1;
  while (1) {
    long long t1 = a + b;
    long long t2 = t1 + b;
    long long c = t1 + t2;
    if (c == n) {
      cout << a << " " << b << " " << t2 << endl;
      break;
    }
    a = b;
    b = t1;
  }
}
