#include <iostream>

using namespace std;

int main()
{
    int N;
    cin>>N;
    int c;
    if(N<=1){
        c=0;
    }
    else {
        c=N-1;
    }

    cout<<c;
    return 0;
}

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

int main() {
	const auto ans = [](int p) { return p > 1? "Even": p < 1? "Odd": "Same"; };
	int T; ios_base::sync_with_stdio(false), cin.tie(nullptr), cin >> T;
	for (long long N; T--; 	cout << ans(__builtin_ctzll(N)) << '\n') 
		cin >> N; }
		