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: # -*- coding: utf-8 -*-

import sys
import os

for s in sys.stdin:
    A = [0]
    v = float(s)
    A.append(v)

    for i in range(2, 10+1):
        if i % 2 == 0:
            v = 2 * A[i-1]
            A.append(v)
        else:
            v = A[i-1] / 3
            A.append(v)
    print(sum(A))

Python: while True:
    try:
        a = float(input())
        Sum = 0
        retu = 3 * a
        for i in range(10):
            if i % 2 == 0:
                retu = retu / 3
            else:
                retu = retu * 2
            Sum += retu
        print(Sum)
    except EOFError:
        break

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

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

Python: while 1:
    try:
        be = float(input())
        sum = be
        for i in range(2, 11):
            if i % 2 == 0:
                be *= 2
                sum += be

            if i % 2 == 1:
                be /= 3
                sum += be
        print(sum)
    except:
        break

Python: import sys


def solve(n):
    sum = n
    current_value = n
    for i in range(2, 11):
        if i%2 == 0:
            next_value = current_value * 2.0
        else:
            next_value = current_value / 3.0
        sum += next_value
        current_value = next_value
    return sum


if __name__ == '__main__':
    # ??????????????\?????¨???????????????
    for line in sys.stdin:
        n = float(line.strip())
        result = solve(n)
        print('{:.8f}'.format(result))

Python: def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

N = list(get_input())
for l in range(len(N)):
    a = float(N[l])
    s = a
    for i in range(2,11):
        if i % 2 == 0:
            a *= 2.0
            s += a
        else:
            a /= 3.0
            s += a
    print(s)

Python: # Aizu Problem 0055: Sequence
#
import sys, math, os, bisect

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    a = float(line)
    S = a
    for k in range(9):
        if k % 2 == 0:
            a *= 2
        else:
            a /= 3
        S += a
    print("%.8f" % S)

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: while 1:
	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:
        a = float(input())
        s = a
        for i in range(9):
            if i%2 == 0:
                a *= 2
            else:
                a /= 3
            s += a
        print(s)
    except:
        break

Python: def sequence(x):
	A=[x]
	for i in range(1,10):
		if i%2:
			A.append(A[i-1]*2)
		else:
			A.append(A[i-1]/3)
	return sum(A)

while True:
	try:
		x=float(input())
		print(sequence(x))
	except EOFError:
		break

Python: # coding=utf-8

###
### for python program
###

import sys
import math

# math class
class mymath:
    ### pi
    pi = 3.14159265358979323846264338

    ### Prime Number
    def pnum_eratosthenes(self, n):
        ptable = [0 for i in range(n+1)]
        plist = []

        for i in range(2, n+1):
            if ptable[i]==0:
                plist.append(i)
                for j in range(i+i, n+1, i):
                    ptable[j] = 1
        return plist

    ### GCD
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

    ### LCM
    def lcm(self, a, b):
        return (a*b)//self.gcd(a,b)

    ### Mat Multiplication
    def mul(self, A, B):
        ans = []
        for a in A:
            c = 0
            for j, row in enumerate(a):
                c += row*B[j]
            ans.append(c)
        return ans

mymath = mymath()

### output class
class output:
    ### list
    def list(self, l):
        l = list(l)
        #print(" ", end="")
        for i, num in enumerate(l):
            print(num, end="")
            if i != len(l)-1:
                print(" ", end="")
        print()

output = output()

### input sample
#i = input()
#N = int(input())
#A, B, C = [x for x in input().split()]
#N, K = [int(x) for x in input().split()]
#inlist = [int(w) for w in input().split()]

#R = float(input())
#A.append(list(map(int,input().split())))

#for line in sys.stdin.readlines():
#    x, y = [int(temp) for temp in line.split()]

#abc list
#abc = [chr(ord('a') + i) for i in range(26)]

### output sample
# print("{0} {1} {2:.5f}".format(A//B, A%B, A/B))
# print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi))
# print(" {}".format(i), end="")

# def printA(A):
#     for i, n in enumerate(A):
#         print(n, end='')
#         if i != N-1:
#             print(' ', end='')
#     print()

# リスト内包表記 ifあり
# [x-k if x != 0 else x for x in C]

# ソート
# N = N.sort()

# 10000個の素数リスト
# P = mymath.pnum_eratosthenes(105000)

def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()

def dist(A, B):
    d = 0
    for i in range(len(A)):
        d += (A[i]-B[i])**2            
    d = d**(1/2)
    return d

def get_input():
    N = []
    while True:
        try:
            #N.append(input())
            #N.append(int(input()))
            N.append(float(input()))
        except EOFError:
            break
    return N

N = get_input()

for ans in N:
    pre = ans
    for i in range(2,11):
        if i % 2 == 0:
            pre = (pre*2)
            ans += pre
        else:
            pre = (pre/3)
            ans += pre
    print(ans)

Python: import sys
for e in sys.stdin:print(float(e)*211/27)

Python: while True:
    try:
        f = float(input())
    except:
        break

    L = [None]*10
    L[0] = f
    for i in range(1,10):
        if i % 2 > 0:
            L[i] = L[i-1] *2
        else:
            L[i] = L[i-1] /3
    print("{:.8f}".format(sum(L)))

Python: while True:
    try:
        s = input()
    except EOFError:
        break

    a = float(s)
    x = 0
    for i in range(5):
        x += a
        a *= 2
        x += a
        a /= 3
    print(x)

Python: while True:
    try:
        n=float(input())
    except:
        break
    num=2
    tmp=round(n,9)
    total=round(n,9)
    while num<=10:
        if num%2==0:
            tmp=round(tmp*2,9)
        else:
            tmp=round(tmp/3,9)
        total+=tmp
        num+=1
    print(round(total,8))

Python: while 1:
	try:
		x = float(input())
	except:
		break
	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 1:
    try:
        n = float(input())
    except:
        break

    ans = n

    for i in range(2, 11):
        if i % 2 == 0:
            tmp = n * 2
        else:
            tmp = n / 3
        ans += tmp
        n = tmp

    print(ans)

Python: while 1:
    try:
        print(7.81481481*float(input()))
    except:break