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++: #define scanf_s scanf
//#define gets_s gets
#include <stdio.h>
#include <string>
#include <iostream>
#include <math.h>
using namespace std;
#define MAX 20001
int main(void)
{
	//		10			2
	double a, s = 0;
	while (scanf_s("%lf", &a) != EOF) {
		s += a;
		for (int i = 2; i <= 10; ++i) {
			if (i % 2) a /= 3;
			else a *= 2;
			s += a;
		}
		printf("%f\n",s);
		s = 0;
	}
}

C++: #include<stdio.h>

int main(void){
	double a[11],d,sum=0;
	int i;
	
	while(scanf("%lf",&d)!=EOF){
	a[1]=d;
	for(i=2;i<11;i++){
		if(i%2==0)a[i]=a[i-1]*2;
		else a[i]=a[i-1]/3;
	}
	for(i=1;i<11;i++)sum=sum+a[i];
	printf("%0.8f\n",sum);
	sum=0;
	}
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.precision(10);
		cout<<sum<<endl;
		sum=0;
	}
}

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

using namespace std;

int main() {
    double d;
    while (cin >> d) {
        double ret = d;
        for (int i = 2; i <= 10; i++) {
            if (i % 2 == 0) {
                d *= 2.0;
            } else {
                d /= 3.0;
            }

            ret += d;
        }

        printf("%.8lf\n", ret);
    }

    return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <utility>
#include <cstring>
#include <iomanip>
#include <numeric>
#include <cmath>
#include <queue>
#include <map>
using namespace std;
typedef long long ll;
const int INF = 1<<30; 
const int MOD = 1e9 + 7;
const int dy[] = {1, 0, -1, 0};
const int dx[] = {0, 1, 0, -1};
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(8);
    double a;
    while(cin >> a)
    {
        vector<double> v;
        v.push_back(0);
        v.push_back(a);
        for(int i = 2; i <= 10; i++)
        {
            if(i % 2 == 0) v.push_back(v[i - 1] * 2);
            else v.push_back(v[i - 1] / 3);
        }
        double ans = 0;
        for(int i = 0; i < v.size(); i++) ans += v[i];
        cout << ans << "\n";
    }
    return 0;
}

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

using namespace std;

double a_1;
double s_n;
std::array<double , 10> arr ;

double fib(int i){
  if(i ==1){
  }else if(i % 2 == 0){
    arr[i] = arr[i-1] * 2;
  }else{
    arr[i] = arr[i-1] / 3;
  }
  return arr[i];
}

int main(void){

  std::cin >> a_1;
  arr[1] = a_1;
  scanf("%lf", &a_1);

  for(int i = 1; i <= 10; i++){
    s_n += fib(i);
    if(i == 10){
      printf("%lf", s_n);javascript:void(0)
    }
  }

  return 0;
}

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

int main(){
	double a, s[10], sum;
	
	
	while(scanf("%lf", &a) != EOF){
		sum = s[0] = a;
		for(int i = 1; i < 10; i++){
			if(i % 2 != 0){
				s[i] = s[i-1] * 2;
			}else {
				s[i] = s[i-1] / 3;
			}
			sum += s[i];
		}
	
		printf("%.8f\n", 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 0;
}

int main() {
	double d[10];
	while (cin >> d[0]) {
		cout << fixed << setprecision(9) << seq(d) << endl;
	}
	return 0;
}

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("%.8lf\n",s);
  
  return 0;

}

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

using namespace std;

double a_1;
double s_n;
array<double , 10> arr ;

double fib(int i){
  if(i ==1){
  }else if(i % 2 == 0){
    arr[i] = arr[i-1] * 2;
  }else{
    arr[i] = arr[i-1] / 3;
  }
  return arr[i];
}

int main(void){

  cin >> a_1;
  arr[1] = a_1;
  scanf("%lf", &a_1);

  for(int i = 1; i <= 10; i++){
    s_n += fib(i);
    if(i == 10){
      printf("%lf", s_n);
    }
  }

  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(10);
	cout << sum << endl;

	return 0;
}

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

using namespace std;

int main(void){

  double n;
  while( cin >> n ){

    double ans = n;
    for( int i = 2 ; i <= 10 ; i++ ){
      if( i % 2 == 0 ){
	n *= 2;
	ans += n;
      }
      else {
	n /= 3; 
	ans += n;
      }
    }
    printf("%.8f\n", ans);
  }
  return 0;
}

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

int main(){

	double a, tmp, sum;

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

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

			tmp = a;

			sum+=a;
		}

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

C++: #include <string>
#include <vector>
#include <algorithm>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <typeinfo>
#include <map>
#define INF 100000000
#define rep(i,a) for(int i=0;i<(a);i++)

using namespace std;
typedef long long ll;

int main(){
    int f;
    while(cin>>f){
        double data[10];
        data[0]=f;
        for(int i=1;i<10;i++){
            if((i+1)%2==0)data[i]=data[i-1]*2;
            else data[i]=data[i-1]/3;
        }
        double ans=0;
        rep(i,10)ans+=data[i];
        printf("%12.10lf\n",ans);
    }
    return 0;
}

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

int main(){
	double a, S=0.0;
	while( scanf("%lf", &a ) ){
		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 <iomanip>

using namespace std;

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

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

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

using namespace std;

int main()
{
	double a[10],n;
	while(cin >> n)
	{
		double ans = 0;
		a[0] = n;
		REP(i,1,10)
		{
			if((i+1)%2 == 0)
			{
				a[i] = a[i-1]*2;
			}
			else
			{
				a[i] = (a[i-1]/3);
			}
		}
		rep(i,10)
		{
			ans += a[i];
		}

		
		cout << setprecision(10)<< ans << endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

int main() {
    double sq[11];
    while (scanf("%lf", &sq[1]) != EOF) {
        double ans = sq[1];

        for (int i = 2; i <= 10; i++) {
            if (i % 2) sq[i] = sq[i - 1] / 3.0;
            else sq[i] = sq[i - 1] * 2.0;
            ans += sq[i];
        }

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

    return 0;
}