I have a sequence defined as follows:

* All even-numbered terms are equal to the previous term multiplied by 2.
* All odd-numbered terms are equal to the previous term divided by 3.



Create a program that reads the first term a of this sequence and outputs the sum s (10) from the first term to the tenth term.



Input

The input consists of multiple test cases. For each test case, a real number a (1.0 ≤ a ≤ 10.0) representing the first term of the sequence is given in one row.

The number of test cases does not exceed 50.

Output

Print s (10) on one line for each test case.

The output may contain an error of 0.000001 or less.

Example

Input

1.0
2.0
3.0


Output

7.81481481
15.62962963
23.44444444

Difficulty: UNKNOWN_DIFFICULTY

Starter code:

Solutions:
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


import sys, math, os, bisect
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)


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)


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


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


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)]))


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)


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)


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


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)


import sys
import math

class mymath:
	pi = 3.141592653589793

	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

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

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

	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()

class output:

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

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(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)


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)


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)


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


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)


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)


from collections import deque
while True:
	try:
		s = deque()
		s.append(float(input()))
		for _ in range(9):
			if _ % 2 == 0:
				s.append(s[_] * 2)
			else:
				s.append(s[_] / 3)
		print(sum(s))
	except:
		break


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)


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
for line in sys.stdin:
	n = float(line.strip())
	result = solve(n)
	print('{:.8f}'.format(result))


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


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]]]


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()


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


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)


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


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 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


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


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}')


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


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


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


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)


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


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)


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


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


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


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


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)


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


while 1:
	try:
		a = float(input())
		b = []
		for i in range(10):
			if i == 0:
				b.append(a)
			elif 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


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


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


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


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