#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 0)
    cout << "0 0 0";
  else if (n == 1)
    cout << "0 0 1";
  else if (n == 2)
    cout << "0 1 1";
  else {
    int* mas = new int[5];
    mas[0] = 0;
    mas[1] = 1;
    mas[2] = 1;
    mas[3] = 2;
    mas[4] = 3;
    while (mas[4] < n) {
      mas[0] = mas[1];
      mas[1] = mas[2];
      mas[2] = mas[3];
      mas[3] = mas[4];
      mas[4] = mas[3] + mas[2];
    }
    cout << mas[0] << " " << mas[1] << " " << mas[3];
  }
  return 0;
}
