#include <iostream>
#include <cmath>
using namespace std;
int prime(int m);
int gotbaha(int a);
int main()
{
int num;
cin>>num;
int gotbaha(int);
int prime(int);
gotbaha(num);
return 0;
}
int gotbaha(int a)
{
int m,n;
for(n=m=a;m<=n;m++,n--)
if(prime(m)==1&&prime(n)==1)
cout>>a "=" n "+" m>>endl;
}
int prime(int m)
{
int k,i;
for(i=2;i<=k;i++)
if(m%i==0)
break;
if(i>k)
return 1;
else return 0;
}