n = int(input()) sum = 0 for i in range(5): sum += n n /= 2 sum += n sum -= n print("{:.6f}\n{:.6f}".format(sum, n))