numerator = input("Numerator = ")
numerator = int(numerator)
denominator = input("Denominator = ")
denominator = int(denominator)
if abs(numerator) >= abs(denominator) :
whole = numerator // denominator
new_numerator = (numerator % denominator)
new_numerator = round(new_numerator)
print('%s + %s / %s' % (whole, new_numerator, denominator))
else : print("%s/%s" % (numerator, denominator))
bnVtZXJhdG9yID0gaW5wdXQoIk51bWVyYXRvciA9ICIpCm51bWVyYXRvciA9IGludChudW1lcmF0b3IpCmRlbm9taW5hdG9yID0gaW5wdXQoIkRlbm9taW5hdG9yID0gIikKZGVub21pbmF0b3IgPSBpbnQoZGVub21pbmF0b3IpCmlmIGFicyhudW1lcmF0b3IpID49IGFicyhkZW5vbWluYXRvcikgOgogICAgd2hvbGUgPSBudW1lcmF0b3IgLy8gZGVub21pbmF0b3IKICAgIG5ld19udW1lcmF0b3IgPSAobnVtZXJhdG9yICUgZGVub21pbmF0b3IpIAogICAgbmV3X251bWVyYXRvciA9IHJvdW5kKG5ld19udW1lcmF0b3IpCiAgICBwcmludCgnJXMgKyAlcyAvICVzJyAlICh3aG9sZSwgbmV3X251bWVyYXRvciwgZGVub21pbmF0b3IpKQplbHNlIDogcHJpbnQoIiVzLyVzIiAlIChudW1lcmF0b3IsIGRlbm9taW5hdG9yKSk=