#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long n;
  cin >> n;
  long long a = 0;
  long long b = 1;
  long long count = 0;
  long long sum = 1;
  while (sum < n) {
    long long x = b;
    b = a + b;
    sum += b;
    a = x;
  }
  if (n == 0)
    cout << "0"
         << " "
         << "0"
         << " "
         << "0";
  else
    cout << "0"
         << " " << a << " " << b;
  return 0;
}
