1389M.cpp 151 B

123456789
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int x;
  5. cin >> x;
  6. cout << (x > 0 ? 1 : (x < 0 ? -1 : 0)) << endl;
  7. return 0;
  8. }