#include<bits/stdc++.h>
using namespace std;
bool js(int x)
{
int j=2;
while(j<=sqrt(x) && x%j!=0) ++j
return j>sqrt(x);
}
int main()
{
int n,i;
bool q=1;
cin>>n;
for(i=3 ; i<=n-2 ; i++)
if (js(i)==1 && js(i+2)==1){
cout<<i<<""<<i+2<<endl;
q=0;
}
if (q==1) cout<<"empty"<<endl;
}