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