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>
#include<string.h>
#include<cstdio>
#include<algorithm>
#include<stack>
#include<queue>
#include<vector>
#include<cmath>
#include<utility>
#define ll long long int
#define ld long double
#define INF 1000000000
#define EPS 0.0000000001
#define rep(i,n) for(i=0;i<n;i++)
using namespace std;
typedef pair<int, int> P;

string str;

int main()
{
  double a;
  int i;

  while(scanf("%lf",&a)!=EOF){
    double sum=0;
    rep(i,5){
      sum+=a;//?\???°???????¶????
      a*=2;//??¶??°???????±???????
      sum+=a;//??¶??°???????¶????
      a/=3;//?\???°???????±???????
    }
    printf("%.8f\n",sum);
  }
}

C++: #include<iostream>
using namespace std;
int main(){
	double array[10];
	double sum=0;
	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;
}

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

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

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

int main(){
  double a;

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

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

    printf("%.10f\n", sum);
  }
}

C++: #include <stdio.h>
#include<math.h>
#include <string.h>
#include <ctype.h>

int main(){
double a,s;
int i;

while(scanf("%lf",&a)!=EOF){
s=a;
for(i=2;i<11;i++){
if(i%2==0){
s=s+s*2;
}
else if(i%2==1){
s=s+s/3;
}
}
printf("%f\n",s);
}

return 0;
}

C++: float f[i];

C++: #include <iostream>
using namespace std;
double calc(int r, double before) {
    if(r % 2 == 0) return((double)before / 3.0);
    else           return((double)before * 2.0);
}

int main(void) {
    double a;
    while(cin >> a) {
        double ary[10]; ary[0] = a;
        double sum = a;
        for(int r = 1; r < 10; r++) {
            ary[r] = calc(r, ary[r - 1]); sum += ary[r];
        }
        printf("%.8f\n", sum);
    }
    return(0);
}

C++: #include<iostream>
#include <iomanip>

using namespace std;
int main()
{
  double s;
  cin>>s;
  double sum=s;
  for(int i=2;i<=10;i++)
    {
      if(i%2==0)
	s*=2;
      else
	s/=3;
      sum+=s;
    }
  cout<<setprecision(10);
  cout<<sum<<endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
double Sequence(double a,int n)
{
    if(n==10)return a*2;
    if(n%2==0)return a*2+Sequence(a*2,n+1);
    if(n==1)return a+Sequence(a,n+1);
    return a/3+Sequence(a/3,n+1);
}
int main()
{
    double n=0,a;
    while(cin>>a){
        n=Sequence(a,1);
        cout<<setprecision(10)<<n<<endl;
    }
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
  double x,s;
  while(cin>>x){
    s=x;
    for(int i=0;;i++){
      x*=2;
      s+=x;
      if (i==4)break;
      x/=3;
      s+=x;
    }
    printf("%.8f\n",s);
  }
}

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

typedef long long int ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pair<int, int> > vii;
#define rrep(i, m, n) for(int (i)=(m); (i)<(n);  (i)++)
#define erep(i, m, n) for(int (i)=(m); (i)<=(n); (i)++)
#define  rep(i, n)    for(int (i)=0; (i)<(n);  (i)++)
#define  rev(i, n)    for(int (i)=(n)-1; (i)>=0; (i)--)
#define vrep(i, c)    for(__typeof((c).begin())i=(c).begin(); i!=(c).end(); i++)
#define  ALL(v)       (v).begin(), (v).end()
#define mp            make_pair
#define pb            push_back
template<class T1, class T2> inline void minup(T1& m, T2 x){ if(m>x) m=static_cast<T2>(x); }
template<class T1, class T2> inline void maxup(T1& m, T2 x){ if(m<x) m=static_cast<T2>(x); }

#define INF 1000000000
#define MOD 1000000007
#define EPS 1E-12

double a;

int main()
{
  while((cin >> a) && a){
    double res = 0.0;
    a *= 3.0;
    rep(i, 10){
      if(i & 1) a *= 2.0;
      else      a /= 3.0;
      res += a;
    }
    printf("%.15f\n", res);
  }

  return 0;
}

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

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

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

int main(){

  long double n;
  while(cin >> n){
    long double sum=n;
    for(int i=2;i<=10;i++){
      if(i%2 == 0){
        n *= 2.;
      }
      else{
        n /= 3.;
      }
      sum += n;
	}
	cout << fixed
		<< setprecision(6)
		<< sum << endl;
  }
  return 0;
}

C++: #include <bits/stdc++.h>
int main(){
 	double tm;while(std::cin>>tm)printf("%lf\n",tm*211/27);
}

C++: #include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){

	double a;

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

	}
	return 0;
}

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

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

C++: #include<iostream>
#include<vector>

using namespace std;

int main(){
    double n = 0;
    vector<double> vn(11,0);
    cin >> vn[1] ;
    for(int i = 2; i < 11;++i){
        if(i % 2 == 0){
            vn[i] = vn[i-1] * 2;
        }
        else{
            vn[i] = vn[i-1] / 3;
        }
        n += vn[i] ;
    }
    printf("%.12f\n", n + vn[1]);
    return 0;
}

C++: #include<iostream>
#include<vector>
#include<string>
#include<string.h>
#include<math.h>
#include<utility>
#include<algorithm>
#include<functional>
using namespace std;

 
int main()
{
	double a=0;
	while(cin>>a)
	{
	
	double s=0;
	
	s=a;
	for(int i=0;i<4;i++)
	{
	a=2*a;
	s=s+a;
	a=a/3;
	s=s+a;

	}
	s=s+a*2;
	cout<<s<<endl;
	}
    return 0;
}