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

C++: #include <iostream>
using namespace std;
int main(){
  double n,ans;
  while(cin >> n){
    ans = n;
    for(int i = 2 ; i <= 10 ; i++){
      if(i%2 == 1){
	n = n/3;
	ans += n;
      }
      else{
	n*=2;
	ans +=n;
      }
    }
    cout << ans << endl;
  }
}

C++: #include <iostream>
using namespace std;
int main() {
    double a;
    while (cin >> a) {
        cout.precision(10);
        cout << a * 211.0 / 27.0 << endl;
    }
    return 0;
}

C++: #include <iostream>
#include <stdio.h>
using namespace std;

int main()
{
	double a, n[10] = {};

	while (cin >> a)
	{
		n[0] = a;
		double sum = n[0];
		for (int i = 1; i < 10; i++)
		{
			if (i % 2 == 1) n[i] = n[i - 1] * 2;
			else  n[i] = n[i - 1] / 3.0; 
			sum += n[i];
	//		cout << n[i] << " ";
		}
		//cout << endl;
		printf("%.6f\n", sum);
	}
	return 0;
}

C++: #include <iostream>
#include <cstdio>
using namespace std;

int main()
{
	double s, sum;

	while (cin >> s){
		s *= 3;
		sum = s;
		for (int i = 0; i < 4; i++){
			s *= 2.0 / 3.0;
			sum += s;
		}
		printf("%.7lf\n", sum);
	}
	return (0);
}

C++: #include <bits/stdc++.h>
#define rep(i,j,k) for(int i=(int)j;i<(int)k;i++)
#define rrep()
#define Sort(x) sort((x).begin(),(x).end())
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define vi vector<int>
#define INF (int)1e9
#define INFL 1e18
#define MOD 1000000007
#define pb push_back
#define MP make_pair
typedef long long int ll;
typedef std::pair<int,int> P;
int D=1;
int dx[4]={0,1,0,-1},dy[4]={1,0,-1,0};

using namespace std;

int main(){
    double n;
    while(cin>>n){
    double ans=n;
    rep(i,0,9){
        if(i%2==0)n*=2;
        else n/=3;
        ans+=n;
    }
    printf("%.10f\n",ans);
    }
    
    
    
    return 0;
}

C++: #include<cstdio>
using namespace std;

int main(){
	double a, S=0.0;
	while( scanf("%lf", &a ) == 1 ){
		S += a;
		for( int i=2; i<=10; i++ ){
			if( i%2 )
				a /= 3.0;
			else
				a *= 2.0;
			S += a;
		}
		printf("%.8f\n", S);
	}
	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;


int main(void){

	double d;
	while( scanf("%lf",&d) != EOF ) {
		double a[10];
		a[0] = d;
		for( int i = 1; i < 10; i++ ) {
			if( i % 2 == 0 ) a[i] = a[i-1] / 3.0;
			else a[i] = a[i-1] * 2.0;
		}
		double sum = 0.0;
		for( int i = 0; i < 10; i++ )
			sum += a[i];
		printf("%.8lf\n",sum);
	}

    return 0;
}

C++: #include <stdio.h>
#include <iostream>
using namespace std ;

double calc( int cnt , double N ){
	if( cnt == 11 ) return 0;
	else return N + calc( cnt+1 , N / ( (cnt%2)?0.5:3.0 ) ) ;
}

int main(){
	
	double D;
	
	while( cin >> D ){
		if( cin.eof() ) break ;
		printf("%.8lf\n",calc(1,D));
	}
	
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <bitset>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cmath>

#define X first
#define Y second
using namespace std;

int main(){
	double a;
	while(cin >> a){
		if(cin.eof()) break;
		double sum = a;
		for(int i = 2; i <= 10; i++){
			if(i%2) a /= 3.0;
			else a *= 2.0;
			sum += a;
		}
		printf("%0.8f\n", sum);
	}
	return 0;
}

C++: #include <cstdio>
#include <iostream>
using namespace std;

#define REP(i, n)       REPEAT(i, 0, n)
#define REPEAT(i, k, n) for (int i = (k); i < (n); ++i)

int main(){
    double n;
    while(cin >> n){
        double t = n;
        n *= 2; t += n;
        n /= 3; t += n;
        n *= 2; t += n;
        n /= 3; t += n;
        n *= 2; t += n;
        n /= 3; t += n;
        n *= 2; t += n;
        n /= 3; t += n;
        n *= 2; t += n;
        printf("%.9f\n", t);
    }
    return 0;
}

C++: #include <iostream>
#include <stdio.h>
using namespace std;
double sumofs(double);

int main(){
    double x,y;
    while (cin >>x){
        if (cin.eof()){break;}
        y = sumofs(x);
        printf("%.7f\n",y);
    }
}

double sumofs(double x){
    double a[10];
    double sum=0;
    a[0] = x;

    for (int i=0;i<9;i++){
        if(i%2==0)
            a[i+1]=a[i]*2;
        else
            a[i+1]=a[i]/3;
    }
    for (int j=0;j<10;j++)
        sum +=a[j];
    return sum;
}

C++: #include<iostream>
#include<math.h>
using namespace std;

int main(){
	long double a;
	long double ans = 0;
	while (cin >> a) {
		ans += a;
		for (int i =1; i < 10; i++) {
			if (i % 2 == 0) {
				a = a / 3;
				ans += a;
				ans *= 100000000000;
				floor(ans);
				ans /= 100000000000;
			}
			else {
				a = a * 2;
				ans += a;
				ans *= 100000000000;
				floor(ans);
				ans /= 100000000000;
			}
		}
		ans *= 100000000000;
		floor(ans);
		ans /= 100000000000;
		cout << ans << endl;
	}

	
    return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
	double n, sum, a;
	while (cin >> n) {
		sum = a = n;
		for (int i = 0; i < 4; i++) {
			a = a * 2.0;
			sum += a;
			a = a / 3.0;
			sum += a;
		}
		a = a * 2;
		sum += a;

		cout << sum << endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
 	long double tm,sum;
	while(cin>>tm){
		sum = 0;
		for(int i=0;i<5;i++){
			sum+=tm;
			tm*=2.0;
			sum+=tm;
			tm/=3.0;
		}
		printf("%.6Lf\n",sum);
	}
}

C++: #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    double a;
    while (cin >> a)
    {
        double be = a, sum = a;
        for (int i = 2; i <= 10; i++)
        {
            if (i % 2 == 0)
            {
                sum += be * 2;
                be *= 2;
            }
            else
            {
                sum += be / 3;
                be = be / 3;
            }
        }
        printf("%.8f\n", sum);
    }
    return 0;
}

C++: #include <iostream>
#include <vector>
#include <cstdio>
#include <string>
#include <cmath>
using namespace std;

int main(){
	
 	double a;
	double s;
	while(cin>>a){
		s=a;
		for(int i=0;i<10;i++){
		if(i%2==0)
			a=a*2;
		else
			a=a/3;
		s+=a;
	}
		printf("%.8f\n",s);
	
}
}

C++: #include <cstdio>
using namespace std;

int main() {
  double a;
  while (scanf("%lf", &a)==1) printf("%.8lf\n", a*211/27);
  return 0;
}

C++: #include <iostream>
#include <stdio.h>

using namespace std;

int main(){
        double a;
        while(cin >> a){ 
                double s = a;
                for(int i = 2; i <= 10; i++){
                        if(i%2) a /= 3;
                        else a *= 2;
                        s += a;
                }   
                printf("%06f\n",s);
        }   
}

C++: #include<iostream>
#include<iomanip>
using namespace std;


main(){


  
  double a=0.0;
  while( cin >> a){
    double sum=a;

    for(int j=2;j<=10;j++){
      if(j%2==0){
	a*=2;
	sum+=a;
      }
      else{
	a/=3;
	sum+=a;
      }

    }
    cout<<setprecision(10);///////////ツ青クツ度ツづーツ１ツ０ツ個づ可指ツ津ィ
    cout << sum << endl;
  }


  return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
    double a;
    cout.precision(10);
    cout.setf(ios::fixed, ios::floatfield);
    while(cin >> a) {
        double sum = 0;
        for(int i = 1; i <= 10; ++i) {
            sum += a;
            if(i % 2 == 0) a /= 3;
            else a *= 2;
        }
        cout << sum << endl;
    }
    return 0;
}