#include using namespace std; int main() { int N; cin >> N; for ( int i = 0;i <= 100;i++,N++ ) { if (N % 2 == 0&&N!=2) { cout << N; return 0; } } }