#include <bits/stdc++.h>
using namespace std;

void fast_io() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
}

int main() {
	fast_io();
	int n;
	cin >> n;
	if (n % 2) {
		cout << 1 << endl;
	} else {
		cout << n / 2 << endl;
	}
}