#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int n; cin >> n; if (__builtin_popcount(n) == 1){ cout << -1 << " " << -1 << " " << -1 << endl; return 0; } int a=0, b=0, c=0; bool f=0; for (int i=0; i<30; i++){ if (n & 1< 0 && b > 0 && c > 0); assert (a | b == n && b | c == n && a | c == n); assert ((a ^ b) ^ c == 0); cout << a << " " << b << " " << c << endl; return 0; }