#include <iostream>
using namespace std;
int x=0,y=1,k=0;
int main()
{
while(cin>>k)
{
cout<<k<<endl;
while((y<=2*k))
{
double result=((double)k*y)/(y-k);
if(((int)result==result)&&result>0)
{
x=(int)result;
cout<<"1/"<<k<<'='<<"1/"<<x<<'+'<<"1/"<<y<<endl;
}
y++;
}
}
return 0;
}