#include using namespace std; int main(){ int N; scanf("%d",&N); printf("%d\n",(1-N%2)*N/2+1); }