#include<iostream> using namespace std; int main() { int a=0; cin>>a; if((a-1)%2==0) cout<<a; else cout<<"-1"; }