CSES - Shared codeLink to this code: https://cses.fi/paste/2b5a4a9c5a608d5b18a457/
#include<bits/stdc++.h>
#define ll long long
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
using namespace std;

int main(){
	fio;
	ll n,lks=1; cin>>n;
	while(n--){
		lks<<=1;
		lks%=((int)1e9+7);
	}	
	cout<<lks<<"\n";
	return 0;
}