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

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

int main() {
	double d[10];
	double a;
	while (cin >> a) {
		d[0] = a;
		d[1] = d[0] * 2;
		for (int i = 2; i < 10; i + 2) {
			d[i] = d[i - 1] / 3;
			d[i + 1] = d[i] * 2;
		}
		int ca=0;
		for (int i = 0; i < 10; i++) {
			ca += d[i];
		}
		cout << fixed << setprecision(9) << ca << endl;
	}
	return 0;
}

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

C++: #include <iostream>
#include <cstdio>
using namespace std;
int main(){
  double n,ans;
  cin >> n;
    ans = n;
    for(int i = 2 ; i <= 10 ; i++){
      if(i%2 == 1){
	n = n/3.0;
	ans += n;
      }
      else{
	n*=2.0;
	ans +=n;
      }
    }
    printf("%.6f\n",ans);
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define it ::iterator
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double ESP=1e-10;
using namespace std;
int main(){
  double a,s;
  while(cin>>a){
    s=a;
    for(int i=0;i<4;i++){
      a*=2;
      s+=a;
      a/=3.0;
      s+=a;
    }
    s+=a*2;
    printf("%lf\n",s);
  }
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	double array[15];
	double sum=0;
	while(cin>>array[0]){
		for(int i=1;i<=9;i++){
			if(i%2==1){
				array[i]=array[i-1]*2;
			}else{
				array[i]=array[i-1]/3;
			}
		}
		for(int i=0;i<=9;i++){
			sum+=array[i];
		}
		cout<<sum<<endl;
		sum=0;
	}
}

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

int main(){
	int i;
	double a[10];
	while(cin >> a[0]){
		double s=a[0];
		for(i=1;i<10;i++){
			if(i%2){
				a[i] = a[i-1]*2;
			}else{
				a[i] = a[i-1]/3;
			}
			s += a[i];
		}
		cout << s << endl;
	}
	return 0;
}

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

int main()
{
    double ini;

    while( cin >> ini )
    {
        int n = 4;
        double sum = ini;
        while( n-- )
        {
            ini *= 2;
            sum += ini;
            ini /= 3;
            sum += ini;
        }
        ini *= 2;
        sum += ini;
        cout << fixed << setprecision(10) << sum << endl;
    }
    return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<math.h>
#include<ctype.h>
#include<algorithm>
#include<queue>
#include<functional>
#include<iomanip>

#define INF 114514810

using namespace std;


int main()
{
	long double num[10];
	long double sum=0;

	cin >> num[0];
	int i;
	for (i = 1; i < 10; i++)
	{
		if (i % 2 == 1){
			num[i] = num[i - 1] * 2;
		}
		else if (i % 2 == 0){
			num[i] = num[i - 1] / 3;
		}
	}
	for (i = 0; i < 10; i++)
		sum += num[i];
	
	cout << setprecision(8);
	cout << sum << endl;

	return 0;
}

C++: #include <iostream>
#include <stdio.h>
 
using namespace std;
 
double i_1;
 
double s_n;
 
double fib(int i){
 
  if(i == 0 )
  {
    return i_1;
  }
 
  //偶数番目
  if((i + 1) % 2 == 0){
    return fib(i-1)*2.0;
  }else{
    return fib(i-1)/3.0;
  }
}
 
int main(void){
 
     
  while(scanf("%lf", &i_1) != EOF)
  {
 
      for(int i = 0; i < 10; i++)
      {
        s_n += fib(i);
        if(i == 9)
        {
          printf("%lf\n", s_n);
        }
      }
      s_n = 0;
  }
 
  return 0;
}

C++: #include <iostream>
#include <cstdio>
using namespace std;
int main()
{
	double n,tmp,sum=0;
	while(scanf("%lf",&n)!=EOF)
	{
		sum=0;
		tmp = n;
		for(int i=0;i<10;i++)
		{
			if(i==0)
			{
			}
			else if(i%2==1)
			{
				tmp *=2;
			}
			else
			{
				tmp /=3;
			}
			sum += tmp;
		}
		printf("%f",sum);
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
 	double tm,sum=0,i=0;
	cin>>tm;
	for(;i<5;i++){
		sum += tm;
		tm*=2;
		sum+=tm;
		tm/=3;
	}
	cout<<sum<<endl;
}

C++: #include <stdio.h>

int main(void) {

  double a[10];
  double s;
  int i;

  scanf("%lf",&a[0]);
 
  for(i=0;i<4;i++) {

    a[2*i+1]=2.0*a[2*i];
    a[2*i+2]=a[2*i+1]/3.0;

  }

  a[9]=2.0*a[8];

  s=0.0;

  for(i=0;i<10;i++) {
    
    s+=a[i];

  }

  printf("%.7lf\n",s);

  return 0;

}

C++: #include<iostream>

using namespace std;

double num(double);

int main(void){
	double a,sum;

	while(cin>>a){
		sum=num(a);
		cout<<sum<<endl;
	}

	return 0;
}

double num(double x){
	int i;
	double data[11],sum=0;

	data[1]=x;
	for(i=2;i<=10;i++){
		if(i%2==0){
			data[i]=data[i-1]*2;
		}
		else{
			data[i]=data[i-1]/3;
		}
	}
	for(i=1;i<=10;i++){
		sum+=data[i];
	}

	return sum;
}

C++: #include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
#include<list>
using namespace std;
int inf = 1000000000;

int main(void) {

  double t;
  while( cin >> t ){
    double sum = 0.0;
    for(int i=0; i<10; i++){
      sum += t;
      if( i % 2 == 0 ) t = t * 2;
      else t = t / 3;
    }
    printf("%.10lf\n", sum);
  }

  return 0;
}

// EOF

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

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

C++: i,main(){double a,s;while(scanf("%f",&a)!=EOF){s=a;for(i=2;i<=10;i++){if(i%2)a/=3.0;else a*=2.0;s+=a;}printf("%.8f\n",s);}}

C++: #include<stdio.h>

double a[11];

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

 	return 0;
}

C++: #include<iostream>

#include <iomanip>
using namespace std;

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