from decimal import Decimal n = float(input()) a, b = Decimal(n).as_integer_ratio() print(f'{a}/{b}')