#include <bits/stdc++.h>
using namespace std;
bool checkNegative(int num){
bool hasNegative=false;
if(num<0){
hasNegative=true;
}
return hasNegative;
}
int main() {
int n;
cin>>n;
cout<<checkNegative(n);
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmJvb2wgY2hlY2tOZWdhdGl2ZShpbnQgbnVtKXsKCWJvb2wgaGFzTmVnYXRpdmU9ZmFsc2U7CiAgICBpZihudW08MCl7CiAgICAJaGFzTmVnYXRpdmU9dHJ1ZTsKICAgIH0KICAgIHJldHVybiBoYXNOZWdhdGl2ZTsKfQppbnQgbWFpbigpIHsKCWludCBuOwoJY2luPj5uOwoJY291dDw8Y2hlY2tOZWdhdGl2ZShuKTsKCXJldHVybiAwOwp9