import sys



for line in sys.stdin:

    ans = [float(line.strip())]

    for i in range(1, 10):

        if (i+1) % 2 == 0: ans += [ans[i-1]*2]

        else: ans += [ans[i-1]/3]

    print((sum(ans)))
while True:

    try:

        a = float(eval(input()))

    except:

        break

    total = a

    for i in range(2, 11):

        tmp = a / 3 if i % 2 else a * 2

        total += tmp

        a = tmp

    print(total)
import sys

for line in sys.stdin:
    ans = [float(line.strip())]
    for i in range(1, 10):
        if (i + 1) % 2 == 0:
            ans += [ans[i - 1] * 2]
        else:
            ans += [ans[i - 1] / 3]
    print((sum(ans)))

while True:
    try:
        a = float(eval(input()))
    except:
        break
    total = a
    for i in range(2, 11):
        tmp = a / 3 if i % 2 else a * 2
        total += tmp
        a = tmp
    print(total)

-import sys - -for line in sys.stdin: -    ans = [float(line.strip())] -    for i in range(1, 10): -        if (i + 1) % 2 == 0: -            ans += [ans[i - 1] * 2] -        else: -            ans += [ans[i - 1] / 3] -    print((sum(ans))) +while True: +    try: +        a = float(eval(input())) +    except: +        break +    total = a +    for i in range(2, 11): +        tmp = a / 3 if i % 2 else a * 2 +        total += tmp +        a = tmp +    print(total)