#include
using namespace std;
bool Scan(int n)
{
if (n % 2 == 0)
return false;
else for (int i = 3; i * i <= n; i += 2)
if (n % i == 0)
return false;
return true;
}
int main(void)
{
int x;
cin >> x;
for (int i = 2; i <= x / 2; i++)
if (Scan(i) && Scan(x - i))
cout << x << " = "<<i << " + " << x - i << endl;
return 0;
}