#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k, x = 0;
  cin >> n;
  long long int arr[n + 1];
  int flag = 0;
  if (n == 0) {
    cout << 0 << " " << 0 << " " << 0;
  } else if (n == 1) {
    cout << 0 << " " << 1 << " " << 0;
  } else if (n == 2) {
    cout << 0 << " " << 1 << " " << 1;
  } else {
    long long int y = 0;
    long long int y1 = 1;
    long long int y2 = 1;
    while (y < n) {
      y = y1 + y2;
      if (y == n) {
        cout << y1 << " " << y2 << " " << 0;
        flag = 1;
        break;
      }
      y1 = y2;
      y2 = y;
    }
    if (flag == 0) {
      cout << "I'm too stupid to solve this problem";
    }
  }
  return 0;
}
