#include <iostream>
using namespace std;

int main() {
    int a;
    while (cin >> a) { // 注意 while 处理多个 case
        if (a == 1) {
            cout << (-1)  << endl;
        } else {
            cout <<2*a << endl;
        }

    }
}
// 64 位输出请用 printf("%lld")