#include<iostream>
#include<stdlib.h>
#include<string.h>
using namespace std;
int main()
{
int n,i,j,k,m=0,a[10000];
cin >> n;
for (j = 2;j < 10000;j++)
{
for (k = 2;k <= j;k++)
if (j % k == 0) break;
if (k == j)
{
a[m] = j;
m++;
}
}
for (int i = 4;i <= n;i += 2)
{
k = 0;
for (j = 0;j < m;j++)
{
if (i == a[j] + a[k])
{
cout << i << "=" << a[j] << "+" << a[k] << endl;
break;
}
else
{
k++;
}
}
}
return 0;
}