#include<iostream>
using namespace std;
main()
{
	int N;cin>>N;
	if(N==1)cout<<7<<endl;
	else cout<<1<<endl;
}