n = float(input()) m = [n , 1] n_s = format(m[0], '.8f') for i in range(8): ln = int(n_s[-(i + 1)]) if ln == 0: continue if ln % 2 == 0: k = 5 elif ln == 5: k =2 else: k = 10 m = [k * m[0], k * m[1]] n_s = format(m[0], '.8f') print(str(int(m[0])) + '/' + str(m[1]))