#include <iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	if(n % 2 == 1)
	{
		cout << (n - 1) / 2;
	}
	else
	{
		cout << n / 2 - 1;
	}
	return 0;
}

0 comments

No comments so far...

Information

ID
407
Time
1000ms
Memory
256MiB
Difficulty
1
Tags
(None)
# Submissions
23
Accepted
9
Uploaded By