#include using namespace std; int main(void){ int N;cin >> N; cout << N + 3 + ((N + 3) & 1); return(0); }