#include<cstdio>
#include<iostream>
typedef struct{int x,y;}point;
point ans[10000];
int top,n;
void output()
{
printf("%d\n",top);
for(int i=1;i<=top;i++)
printf("1/%d = 1/%d + 1/%d\n",n,ans[i].x,ans[i].y);
}
int main()
{
//freopen("out.out","w",stdout);
while(scanf("%d",&n)==1&&n)
{
top=0;
for(int i=n+1;i<=2*n;i++)
if(i!=n)
{
int x=(n*i)/(i-n);
if((double)(x*(i-n)==(i*n)))
{
top++;
ans[top].x=x;
ans[top].y=i;
}
}
output();
}
return 0;
}