ef[

mail@pastecode.io avatar
unknown
c_cpp
8 months ago
212 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int n,r;
	cin >> n;
	if (n == 0 or n == 1)
	{
		r = 0;
	}
	if (n % 2 == 0)
	{
		r =n/ 2;
	}
	else if (n!=1)
	{
		r = n;
	}
	cout << r;
}