#include using namespace std; int main() { int x; cin >> x; if( x < 0) cout << -1; else if(x >= 0 && x <= 3) cout << x*x; else cout << 4; return 0; }