#import"iostream" int main(){int n;std::cin>>n;std::cout<<(n>>(~n&1));}