#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, j, m = 0, cou = 0, sum = 0;
  long long int mx = 0, mn = INT_MAX, lz = 0, rz = 0, lo = 0, ro = 0;
  long long int mid;
  cin >> n;
  if (n == 0) {
    cout << "0 0 0";
    exit(0);
  }
  if (n == 1) {
    cout << "1 0 0";
    exit(0);
  }
  vector<int> v(1000, 0);
  v[1] = 1;
  v[2] = 1;
  i = 3;
  while (m < n) {
    v[i] = v[i - 1] + v[i - 2];
    m = v[i];
    i++;
  }
  cout << v[i - 2] << " " << v[i - 3] << " " << 0;
}
