#include<iostream>
#include<vector>
using namespace std;
#define MAX 100000
bool v[MAX];
void pre()
{
	
	for(int i=2;i<MAX;i++)v[i]=true;
	for(int i=2;i<MAX;i++)
	{
		if(v[i])
		for(int j=i;j*i<MAX;j++)
		v[j*i]=false;
	}
}
int main()
{
	pre();
	int i;
    cin>>i;
    cout<<i;
	return 0;
}