#include <stdio.h>
int main() {
    int numerator, denominator;
    while (scanf("%d/%d", &numerator, &denominator) != EOF) {
        for(int i = 0; i < numerator - 1; i++) {
            printf("1/%d+", denominator);
        }
        printf("1/%d\n", denominator);
    }
}