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<iomanip>
int main(){
  using namespace std;
  double a[10],b,c;
  while(cin>>b){
    c=0;
    a[0]=b;
    for(int i=1;i<10;i++)
      if(i%2==1)a[i]=a[i-1]*2;
      else a[i]=a[i-1]/3;
    for(int i=0;i<10;i++)
      c+=a[i];
    cout<<setprecision(8)<<c<<endl;
  }   
  return 0;
}

C++: #include <iostream>
#include <cstdio>
int main()
{
	double a,s;
	while(std::cin >> a)
	{
		if(std::cin.eof()) break;
		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);
	}
}

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

double c (double sum, double n, int t) {
    if (t >= 10) return sum;
    if ((t+1) % 2 == 1) {
        sum += n;
        n *= 2.0;
        return c(sum, n, t+1);
    } else {
        sum += n;
        n /= 3.0;
        return c(sum, n, t+1);
    }
}

int main ()
{
    double n;
    while (cin >> n) {
        printf("%.7f\n", c(0.0, n, 0));
    }

    return 0;
}

C++: #include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
#include <complex>
#include <ctime>
#include <cstdlib>

using namespace std;

inline int to_int(string s) {int v; istringstream sin(s); sin >> v; return v;}
template<class T> inline string to_str(T x) {ostringstream sout; sout << x; return sout.str();}

typedef long long ll;

int main()
{
	double num, ans;
	while(cin >> num)
	{
		ans = num;
		num *= 2;
		ans += num;

		for(int i = 0; i < 4; i++)
		{
			num /= 3;
			ans += num;
			num *= 2;
			ans += num;
		}

		printf("%.6f" ,ans);
	}
}

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

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

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

using namespace std;

int main(int argc, char **argv)
{
	double a, tmp;
	
	while(cin >> a){
		tmp = a;
		a *= 2;
		tmp += a;
		for(int i = 1; i < 5; i++){
			a /= 3;
			tmp += a;
			a *= 2;
			tmp += a;
		}
		
		printf("%.8lf\n", tmp);
	}
	
	return 0;
}

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

using namespace std;

double guu(double);
double ki(double);


int main(){

  double a[10], sum;

  while(cin >> a[0]){
    sum = a[0];

    for(int i = 1; i < 10; i++){
      if(i % 2 == 1){
	a[i] = guu(a[i-1]);
	sum += a[i];
      }else{
	a[i] = ki(a[i-1]);
	sum += a[i];
      }
    }
    printf("%.8f\n",sum);

  }

  return 0;

}

    
    

double guu(double x){

  return 2*x;
}

double ki(double x){

  return x / 3;
}

C++: #include<iostream>
#include<iomanip>
int main()
{
	while (true)
	{
		double a;
		std::cin >> a;
		if (std::cin.eof())
		{
			break;
		}
		std::cout << std::fixed << std::setprecision(10) << a * 211 / 27 << std::endl;
	}
	return 0;
}

C++: #include <iostream>
#include <cstdio>
int main(void){
	double a,s;
	int n;
	while (std::cin>>a){
		s=a;
		n=9;
		while(n--){
			(n%2)?a/=3:a*=2;
			s+=a;
		}
		printf ("%.8f\n",s);
	}
}

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("%.8f",sum);
	}
	return 0;
}

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

using namespace std;

int main(){
	double a,temp;
	double sum;
	while(scanf("%lf",&a)!=EOF){
		temp=a;
		sum=a;
		for(int i=2;i<=10;i++){
			if(i%2==0)
			temp=temp*2;
			else
			temp=temp/3;
			sum+=temp;
		}
		printf("%.8f\n",sum);
	}
}

C++: #include <iostream>
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 <iostream>
#include <cstdio>
using namespace std;
int main() {
	double a;
	while (cin>>a) {
		double s[10], res=a;
		s[0]=a;
		for (int i=1; i<10; i++) {
			if (i%2==0) {
				s[i]=s[i-1]/3.0;
			} else {
				s[i]=s[i-1]*2.0;
			}
			res+=s[i];
		}
		printf("%.8f\n",res);
	}
}

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

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

C++: #include<iostream>
using namespace std;
int main(){
	double s,a;
	while(cin>>a){
		s=0;
		for(int i=1;i<=10;i++){
			s+=a;
			if(i&1)a*=2;
			else a/=3;
		}
		cout<<s<<endl;
	}
	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 <iostream>
#include <iomanip>

using namespace std;

int main()
{
	double a;
	
	while ( cin >> a ) cout << fixed << setprecision(6) << a * 211.0 / 27.0 << endl;
	
	return 0;
}

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

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

int seq(double *x) {
	x[1] = x[0] * 2;
	for (int i = 2; i < 10; i + 2) {
		x[i] = x[i - 1] / 3;
		x[i + 1] = x[i] * 2;
	}
	int y=0;
	for (int i = 0; i < 10; i++) {
		y += x[i];
	}
	return y;
}

int main() {
	double d[10];
	while (cin >> d[0]) {
		cout << fixed << setprecision(9) << seq(d) << endl;
	}
	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] ;
    }
    cout << n + vn[1] << endl;
    return 0;
}