Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	sc.Split(bufio.ScanLines)
	for sc.Scan() {
		n, _ := strconv.ParseFloat(sc.Text(), 64)
		ans := n
		sum := n
		for i := 2; i <= 10; i++ {
			if i%2 == 0 {
				ans *= 2
				sum += ans
			} else {
				ans /= 3
				sum += ans
			}
		}
		fmt.Println(sum)
	}
}

Python: while 1:
    try:n=float(input())
    except:break
    s=n
    for i in range(9):
        n=n/3 if i%2 else n*2
        s+=n
    print(s)

Python: while True:
    try:
        a = float(input())
    except:
        break
    S = [a]
    for i in range(2,11):
        if i%2==0:
            Si = S[i-2] * 2
            S.append(Si)
        if i%2==1:
            Si = S[i-2] / 3
            S.append(Si)
    print(f'{sum(S):.6f}')

Python: import sys
readlines = sys.stdin.readlines
write = sys.stdout.write
def solve():
    for line in readlines():
        a = float(line)
        s = 0
        for i in range(10):
            s += a
            if i % 2:
                a /= 3
            else:
                a *= 2
        write("%.16f\n" % s)
solve()

Python: while True:
  try:
    a1 = float(input())
    lst = [a1]
    for i in range(2,11):
      if i % 2:
        a1 /= 3
        lst.append(a1)
      else:
        a1 *= 2
        lst.append(a1)

    print(sum(lst))

  except EOFError:
    break

Python: while True:
    try:
        a0 = float(input().strip())
        s = a0
        for i in range(1,10):
            if i % 2 == 1:
                a1 = a0*2
            else:
                a1 = a0/3
            s += a1
            a0 = a1
        print(s)

    except EOFError:
        break

Python: while 1:
    try:
        n=[0]*10
        n[0]=float(input())
        for i in range(1,10):
            if i%2==1:
                n[i]=n[i-1]*2
            elif i%2==0:
                n[i]=n[i-1]/3
        print(f'{sum(n):.8f}')
    except:break

Python: while True:
    try:
        a1 = float(input())
        ans = beforeNum = a1
        for i in range(2,11):
            if i % 2 == 0:
                beforeNum *= 2
            else:
                beforeNum /= 3
            ans += beforeNum             
        print(ans)
    except:
        break

Python: while True:
    try: a = float(input())
    except: break
    ans = a
    for i in range(9):
        a = a*2*((i+1)&1)+a/3*(i&1)
        ans += a
    print("%.8f"%ans)

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

Python: import sys
for e in sys.stdin:
 t=[a,
 a*2,
 a*2/3,
 a*2/3*2,
 a*2/3*2/3,
 a*2/3*2/3*2,
 a*2/3*2/3*2/3,
 a*2/3*2/3*2/3*2,
 a*2/3*2/3*2/3*2/3,
 a*2/3*2/3*2/3*2/3*2]
 print(sum(t))

Python: while(1):
    try:
        a = float(input())
        b = []
        for i in range(10):
            if i == 0:
                b.append(a)
            else:
                if i%2 == 0:
                    a = a/3
                    b.append(a)
                else:
                    a = a*2
                    b.append(a)
        s = sum(b)
        print("{:.8f}".format(s))
    except EOFError:
        break

Python: 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))

Python: from sys import stdin
def an(n ,a):
    if n == 1:
        return a
    if n % 2 == 0:
        return an(n - 1, a) * 2
    else:
        return an(n - 1, a) / 3
    
for line in stdin:
    a = float(line)
    print (sum([an(n,a) for n in range(1,11)]))

Python: while True:
    try:
        a = float(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)

Python: while True:
    try:
        N = float(input())
    except EOFError:
        break
    ans = N
    for i in range(9):
        if i % 2 == 0:
            N *= 2.0
        else:
            N /= 3.0
        ans += N
    print(ans)

Python: import sys
f = sys.stdin

for a in f:
    a = float(a)
    s = a
    for i in range(2, 10 + 1):
        a = a / 3 if i % 2 else a * 2
        s += a
    print('{:.8f}'.format(s))

Python: import sys
for line in sys.stdin.readlines():
  i = float(line)
  s = 0
  for x in range(5):
    s += i
    i *= 2
    s += i
    i /= 3
  print(s)

Python: x = float(input())
s=x
for i in range(9):
	if i % 2 == 0:
		s = s*2
		x+=s
	if i % 2 == 1:
		s = s/3
		x+=s
print(x)

Python: while True:
    try:
        a0 = float(input().strip())
        s = a0
        for i in range(1,10):
            if i % 2 == 1:
                a1 = a0*2
            else:
                a1 = a0/3
            s += a1
            a0 = a1
        print(s)

    except EOFError:
        break

Python: import sys
for a in sys.stdin:
    if a == "\n":
        break
    s = [0 for i in range(10)]
    s[0] = float(a)
    for i in range(1, 10):
        if i % 2:
            s[i] = s[i-1] * 2
        else:
            s[i] = s[i-1] / 3
    print(sum(s))

Python: import sys

for line in sys.stdin:
    a = float(line)
    S = a

    for i in range(2, 11):

        if i % 2 == 0:
            a *= 2
        else:
            a /= 3

        S += a

    print(S)

Python: while 1:
    try:print(float(input())*211/27)
    except:break

Python: while True:
    num_list = []
    try:num_list.append(float(input()))
    except:break
    for i in range(1,10):
        #奇数の場合だけど0スタートなので偶数扱い
        if i % 2 == 1:
            num_list.append(num_list[i-1] * 2)
        #偶数の場合だけど0スタートなので奇数扱い
        else:
            num_list.append(num_list[i-1] / 3)
    print(sum(num_list))

Python: import sys
for e in sys.stdin:
 a=float(e)
 t=[a,
 a*2,
 a*2/3,
 a*2/3*2,
 a*2/3*2/3,
 a*2/3*2/3*2,
 a*2/3*2/3*2/3,
 a*2/3*2/3*2/3*2,
 a*2/3*2/3*2/3*2/3,
 a*2/3*2/3*2/3*2/3*2]
 print(sum(t))

Python: # AOJ 0055: Sequence
# Python3 2018.6.15 bal4u

import sys
for a in sys.stdin:
    print(7.81481481481481 * float(a))

Python: #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
from sys import stdin

for line in stdin:
    s = a = float(line)
    for i in xrange(2, 11):
        if i % 2 == 0:
            a *= 2.0
        else:
            a /= 3.0
        s += a
    print(s)

Python: import sys
for n in (float(l) for l in sys.stdin.readlines()):
    ans = n
    for i in range(2, 11):
        if i%2 == 0:
            n *= 2
        else:
            n /= 3
        ans += n
    print(ans)

Python: from decimal import *
import sys
getcontext().prec=10
[print(j) for j in [Decimal(i)*Decimal("633")/Decimal("81") for i in [l for l in sys.stdin]]]

Python: while True:
    try:
        f = float(input())
    except:
        break
    l = [0] * 11
    l[1] = f
    for i in range(2,11):
        if i % 2 == 0:
            l[i] = l[i-1] * 2
        else:
            l[i] = l[i-1] / 3

    print(sum(l))

Python: while 1:
 try:print(float(input())*211/27)
 except:break

Python: while True :
    try :
        a = float(input())
    except EOFError :
        break
    
    S = []
    S.append(0)
    S.append(a)
    for i in range(2, 11) :
        if i % 2 == 0 :
            S.append(S[i-1] * 2)
        else :
            S.append(S[i-1] / 3)
    print(sum(S))

Python: a = []
while True:
    try:
        a.append(float(input()))
    except EOFError:
        break

for i in range(len(a)):
    count = 0
    x = a[i]
    sum = a[i]
    for j in range(9):
        if count % 2 == 0:
            x *= 2
            sum += x
        else:
            x /= 3
            sum += x
        count += 1
    print(sum)