#include #include using namespace std; using namespace atcoder; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int n; cin >> n; //////////////// 出力変数定義 //////////////// int result = 0; //////////////////// 処理 //////////////////// if (n%2) result = 1; else result = (n+1)/2; //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }