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;

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

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

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

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

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

using namespace std;

int main()
{
    double a;

    cout << setprecision(7) << fixed;
    while (cin >> a) {
        double ans = a;

        for (int i = 2; i <= 10; i++) {
            if (i % 2) 
                a /= 3.0;
            else 
                a *= 2.0;
            ans += a;
        }
        cout << ans << endl;
    }

    return 0;
}

C++: #include <cstdio>
#include <vector>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <sstream>
#include <cmath>
#include <climits>
#include <set>
#include <iostream>
#include <map>
#include <functional>

using namespace std;

#define reep(i,f,n) for(int i=f; i<int(n); ++i)
#define rep(i,n) reep(i,0,n)

typedef vector<int> vi;

int main()
{
	double a;
	while(scanf("%lf", &a) != EOF){
		double sum = 0.0;
		rep(i, 10){
			sum += a;
			a *= (i%2 ? 1.0/3.0 : 2.0);
		}
		printf("%.8f\n", sum);
	}

	return 0;
}

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

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

C++: #include<iostream>

using namespace std;

int main(){
	double a;
while(cin >> a) cout << a * 633.0 / 81.0 << endl;
return 0;
}

C++: #include <stdio.h>

int main() {
        const int N = 11;
        float s;
        float a[N];

        while (scanf("%f", &a[1]) != EOF) {
                s = a[1];
                for (int i = 2; i < N; i++) {
                        if (i % 2) {
                                a[i] = a[i-1]/3;
                        } else {
                                a[i] = a[i-1]*2;
                        }
                        s += a[i];
                }
                printf("%f\n", s);
        }

        return 0;
}

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

using namespace std;

int main() {
  long double n = 1;
  while (cin >> n) printf("%.12Lf\n", 211 * n / 27);
}

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

using namespace std;

int main()
{
    array<double, 10> seq;

    while (cin >> seq.at(0)) {
        double sum = seq.at(0);
        for (size_t i = 1; i < 10; i++) {
            seq.at(i) = (i % 2)? (seq.at(i - 1) * 2): (seq.at(i - 1) / 3);
            sum += seq.at(i);
        }

        cout << fixed << setprecision(6) << sum << endl;
    }

    return 0;
}

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

int main()
{
    double n;
    while (cin >> n) {
        double nums[10] = {n};
    
        for(int i=1;i<10;++i) {
            if ((i+1)%2) nums[i] = num[i-1]/3;
            else nums[i] = nums[i-1]*2;
        }
    
        double sum = 0.0;
    
        for(int i=0;i < 10;++i) sum += nums[i];

        cout << sum << endl;
    }

    return 0;
}

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

using namespace std;

int main()
{
	double N;

	while (cin >> N)
	{
		cout << setprecision(15) << N * 211 / 27 << endl;
	}

	return 0;
}

C++: #include <algorithm>
#include <map>
#include <vector>
#include <iostream>
#include <sstream>
#include <cstdio>
#include <cstring>
#include <cctype>
#include <cstdlib>
#include <cmath>
#include <string>
#include <queue>
using namespace std;

#define REP(i,n) for(int i=0; i<n; ++i)
#define IREP(it,array) for(vector<int>::iterator it=array.begin(); it!=array.end(); ++it)
#define SREP(it,array) for(vector<string>::iterator it=array.begin(); it!=array.end(); ++it)


int main()
{
  cout.setf(ios::fixed, ios::floatfield);
  cout.precision(10);

  int INF = 1000000;

  double a;
  while(cin>>a){
    cout << (135.0+76)/27 * a << endl;
  }

  return 0;
}

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

using namespace std;

int main( void )
{
	long double a;
	while ( cin >> a )
	{
		vector <long double> s(20);
		s[1] = a;
		for ( int i = 2; i <= 10; i++ )
		{
			if ( i % 2 == 0 )
			{
				s[i] = s[i-1] * 2.0;
			}
			else
			{
				s[i] = s[i-1] / 3.0;
			}
		}

		double kotae = 0.0;
		for ( int i = 1; i <= 10; i++ )
		{
			kotae += s[i];
		}

		cout.setf( ios::fixed );
		cout.precision( 8 );
		cout << kotae << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
  double a;
  while(cin >> a){
    double s[11] ={}, ans = 0;
    for(int i = 1; i <= 10; i++){
      int si = 0, bo = 0;
      if(i == 1) 
        s[i] = a;
      else if(i % 2 == 0){
        si = pow(2, i/2);
        bo = pow(3, (i/2) - 1);
        s[i] = a * (si / bo);
      }
      else{
        si = pow(2, i/2);
        bo = pow(3, i/2);
        s[i] = a * (si / bo);
      }
      ans += s[i];
    }
    cout << fixed << setprecision(10) << ans << endl;
  }
}

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

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

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

int main(int argc, char **argv)
{
  double d;
  cout.precision(8);
  cout << fixed;
  while (cin>>d) {
    double acm = d;
    for (int i = 2; i <= 10; i++) {
      if (i%2) {
        d /= 3;
        acm += d;
      } else {
        d *= 2;
        acm += d;
      }
    }
    cout << acm << endl;
  }
  return 0;
}

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

using namespace std;

int main()
{
  double a;
  while (scanf("%lf ", &a) == 1) {
    int cur = a;
    double sum = a;
    for (int i = 0; i < 10; i++) {
      if (i % 2 == 0) {
	sum += cur * 2;
	cur *= 2;
      } else {
	sum += cur / 3;
	cur /= 3;
      }
    }
    printf("%lf\n", sum);
  }
  return 0;
}

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

int main(){
	double a;
	while (cin >> a, !cin.eof()){
		double ans[10] = {};
		double sum = 0;
		ans[0] = a;
		for (int i = 1; i < 10; i++){
			if (i % 2 == 0){
				// 奇数番目
				ans[i] = ans[i - 1] / 3.0;
			}
			else{
				// 偶数番目
				ans[i] = ans[i - 1] * 2.0;
			}
		}
		for (int i = 0; i < 10; i++){
			sum += ans[i];
		}
		printf("%.9lf\n", sum);
	}

	return 0;
}

C++: #include<stdio.h>


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