eolymp
bolt
Try our new interface for solving problems
Problems

None of the two conditions

published at 1/13/24, 5:29:23 pm

include <bits/stdc++.h>

define ll long long

using namespace std; int main() { ll n; cin>>n; if((n%2==0 and n>0) or (n<0 and n%2!=0)) { cout<<"NO"<<endl; } else { cout<<"YES"<<endl; } return 0; }