#include <stdio.h> int gcd(int a, int b) { return (a % b == 0 ? b : gcd(b, a % b)); } int main(void) { int a, b, t; scanf("%d%d", &a, &b); if(a && b && a < b) { t = gcd(a, b); printf("%d/%d\n", a / t, b / t); } return 0; }