#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, n, i, j, k, u, d, l, r, x, y, s1, s2, s3, ans;
  cin >> n;
  long long arr[100005];
  arr[0] = 0, arr[1] = 1;
  for (i = 2; i <= 100004; i++) {
    arr[i] = arr[i - 1] + arr[i - 2];
  }
  if (n >= 4) {
    for (i = 4; i <= 100004; i++) {
      if (n == arr[i]) {
        cout << arr[i - 4] << " " << arr[i - 3] << " " << arr[i - 1] << endl;
      }
    }
  } else if (n == 3) {
    cout << "1 1 1" << endl;
  } else if (n == 2) {
    cout << "0 1 1" << endl;
  } else if (n == 1) {
    cout << "0 0 1" << endl;
  } else if (n == 0) {
    cout << "0 0 0" << endl;
  }
}
