n = int(input()) ex = sum([i*1/6 for i in range(1, 7)]) print(n*ex)