#include #include using namespace std; int main(void){ int n; cin >> n; int ans = __gcd(n, n * (n - 1) / 2); cout << ans << endl; return 0; }