#include #include #include #include #include #include #include #include using namespace std; int gcd(int a,int b) { if(b==0) return a; else return gcd(b,a%b); } int main() { int n,m; while(scanf("%d%d",&n,&m)!=EOF) { printf("%d/%d\n",n*m/gcd(n*m,n+m),(n+m)/gcd(n*m,n+m)); } }