Problem:
Score : 100 points

Problem Statement

Given is an integer x that is greater than or equal to 0, and less than or equal to 1.
Output 1 if x is equal to 0, or 0 if x is equal to 1.

Constraints

0 \leq x \leq 1

x is an integer

Input

Input is given from Standard Input in the following format:

x

Output

Print 1 if x is equal to 0, or 0 if x is equal to 1.

Sample Input 1

1

Sample Output 1

0

Sample Input 2

0

Sample Output 2

1

Solution in C++ (GCC 9.2.1) (judge verdict: Wrong Answer)

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
ll mod=1000000005;
using namespace std;

ll pow(ll x,ll y,ll mod){
	ll ans=1;
	while(y>0){
		if(y%2==1){
			ans=(ans*x)%mod;
		}

		y/=2;
		x=(x*x)%mod;
	}

	return ans%mod;
}

int main(){
	ll n;
	cin>>n;
	//ll x=10,y=9,z=8;
	ll x=pow(10,n,mod);
	ll y=pow(9,n,mod);

	ll z = pow(8,n,mod);
	

	ll ans = 0;
  	
  	ans = (x-y+mod)%mod;
  
  	ans = (ans-y+mod)%mod;
  
  
	ans=(ans+z)%mod;

	cout<<ans<<endl;
}