#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a = 0, b = 1;
  if (n == 0) {
    cout << 0 << " " << 0 << " " << 0;
    return 0;
  }
  int temp;
  while ((a + b) != n) {
    temp = b;
    b = a + b;
    a = temp;
  }
  cout << 0 << " " << a << " " << b;
  return 0;
}
