#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int fib[45] = {0,         1,         1,        2,        3,         5,
                 8,         13,        21,       34,       55,        89,
                 144,       233,       377,      610,      987,       1597,
                 2584,      4181,      6765,     10946,    17711,     28657,
                 46368,     75025,     121393,   196418,   317811,    514229,
                 832040,    1346269,   2178309,  3524578,  5702887,   9227465,
                 14930352,  24157817,  39088169, 63245986, 102334155, 165580141,
                 267914296, 433494437, 701408733};
  int n, con = 0;
  cin >> n;
  for (int i = 0; i <= 44; i++) {
    if (con) break;
    for (int j = 0; j <= 44; j++) {
      if (con) break;
      for (int k = 0; k <= 44; k++) {
        if (fib[i] + fib[j] + fib[k] == n) {
          con = 1;
          cout << fib[i] << " " << fib[j] << " " << fib[k];
          break;
        }
      }
    }
  }
  if (!con) cout << "I'm too stupid to solve this problem";
  return 0;
}
