#include<stdio.h>
int main()
{
int a, b, c, temp, d, x, y;
scanf("%d%d%d", &a, &b, &c);
if (a < b)
{
temp = a;
a = b;
b = temp;
}
if (b < c)
{
temp = b;
b = c;
c = temp;
}
x = c;
y = a;
while (x != 0)
{
d = y % x;
y = x;
x = d;
}
if (y != 1)
{
a /= y;
c /= y;
}
printf("%d/%d", c, a);
return 0;
}