#include<bits/stdc++.h>
using namespace std;
int n,b;
bool IsPrime(int x){
for(int i=2;i*i<=x;i++){
if(x%i==0){
return 0;
}
else{
return 1;
}
}
}
int main(){
cin>>n;
for(int i=2;i<=n;i++){
if(IsPrime(i)&&IsPrime(i+2)){
b=1;
cout<<i<<" "<<i+2<<endl;
}
}
if(b==0){
cout<<"empty";
}
return 0;
}