#include int main() { int N; std::cin >> N; N += 1; if (N % 2) N += 998244353; std::cout << N / 2 << "\n"; }