#include using namespace std; int main(){ unsigned long long N; cin >> N; if (N % 4 == 0 && N > 4){ cout << 1 << endl; }else if(N % 2 == 1 && N > 1){ cout << 1 << endl; }else{ cout << -1 << endl; } return 0; }