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>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
//	cut here before submit 
//	freopen("testcase.seq", "r", stdin);
	string str = "";
	while (getline (cin, str ) ){
		if (str.empty() ){
			break;
		} // end if
		double a0;
		stringstream ss(str);
		ss >> a0;
		double res = 211.*a0/27.;
		printf ("%.9f\n", res );
	} // end loop
		
	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define FOR(i, m, n) for(int i=(m); i<(n); ++i)
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
#define mp make_pair
#define pb push_back
#define Cout(x) cout << (x) << endl
#define Cout2(x, y) cout << (x) << " " << (y) << endl
#define dump(x) cout << #x << " = " << (x) << endl;
#define forauto(i, a) for(auto i : a)cout << i << " "; puts("");
typedef long long LL;
typedef vector<int> VI;
typedef vector<LL> VL;
typedef vector<string> VS;
typedef vector<bool> VB;
typedef vector<vector<int>> VVI;
typedef pair<int, int> PII;
const int inf = 1e9;
const double pi = acos(-1.0);

double solve(double a) {
	vector<double> s(10);
	s[0] = a;
	FOR(i, 1, 10) {
		if (i % 2)s[i] = s[i - 1] * 2.;
		else s[i] = s[i - 1] / 3.;
	}

	double ret = accumulate(all(s), 0.);
	return ret;
}

int main() {
	double a;
	while (cin >> a) {
		printf("%.20f\n", solve(a));
	}
}

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

double a;

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

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

using namespace std;

int main() {

	double a, s;

	while(cin >> a) {
		s=a;
		for(int i=2; i<11; i++) {
			if(i%2==0) {
				a*=2;
				s+=a;
			}
			else {
				a/=3;
				s+=a;
			}
		}
		printf("%.8f\n", s);
	}

	return 0;

}

C++: #include<stdio.h>

int main(void){
    float n,s;
    int i;
    while (scanf("%f",&n) != EOF){
    scanf("%f",&n);
        s = n;
        for (i = 2;i <= 10;i++){
            if (i % 2 == 0){
                n = n * 2.00f;
                s = s + n;
            }
            else{
                n = n / 3.00f;
                s = s + n;
            }
        }
        printf("%f\n",s);
    }
    return 0;
}

C++: include<cstdio>
#include<iostream>
using namespace std;
int main(){
  double a,b=7.81481481481481;
  while(1){
  scanf("%lf",&a);
  printf("%f\n",a*b);
  }
}

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);
    }
  }

  return 0;
}

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

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

C++: #include<cstdio>

using namespace std;

double num(double);

int main(void){
	double a,sum;

	while((scanf("%lf",&a))!=EOF){
		sum=num(a);
		printf("%.6f\n",sum);
	}

	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 <stdio.h>

using namespace std;

double s(double s0,int n){
	if(n==1){
		return s0;
	}
	else if(n%2==1){
		return s(s0,n-1)/3.0;
	}
	else{
		return s(s0,n-1)*2;
	}
}

int main(){
	double s0;
	while(cin>>s0){
		double sum = 0;
		for(int i=1;i<=10;i++){
			sum += s(s0,i);
		}
		printf("%.6f\n",sum);
	}	

	return 0;

}

/*
Sample Input
1.0
2.0
3.0
Output for the Sample Input
7.81481481
15.62962963
23.44444444
*/

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

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

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

int main(){
	double a;
	while( scanf(" %lf", &a) != EOF ){
		double sum=a;
		for(int i=0; i<9; ++i){
			if(i%2==0){
				a*=2.0;
				sum+=a;
			}
			else{
				a/=3.0;
				sum+=a;
			}
			
			//printf("now:%.8lf\n", a);
		}
		
		printf("%.8lf\n", sum);
	}

	return 0;
}

C++: #include<iostream>
int main(){for(double a;!(std::cin>>a).eof();)printf("%.7f\n",a*211/27);}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>
#include <map>


#define rep(x,to) for(int x=0;x<to;x++)
#define rep2(x,from,to) for(int x=from;x<to;x++)

using namespace std;


int main(void){

double a;
	while(cin >> a){
		if( cin.eof()) break;
		double s = a;
		rep2(i,2,11){
			if(i%2) a /= 3;
			else    a *= 2;
			s += a;
		}
		printf("%.10f\n", s);
	}
	return 0;
	
	
}

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

int main() {
	double sum,sumv;
	while(cin>>sum){
	sumv=sum;
	for (int i = 0; i < 5; ++i) {
		sum=sum+sumv*2;
		sumv=sumv*2;
		if(i!=4){sum=sumv/3.0+sum;
		sumv=sumv/3;}
	}
	printf("%.10f\n",sum);
	}
}

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

int main() {
	double a;
	vector<double> r;
	while(cin >> a)
	{
		double sum = 0;
		for (int i=0; i<10; i++)
		{
			sum+=a;
			if (i%2)
			{
				a/=3;
			} else {
				a*=2;
			}
		}
		r.push_back(sum);
	}
	cout << setprecision(10);
	for (int i=0; i<r.size(); i++)
	{
		cout << r[i] << endl;
	}
}

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

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

C++: #include <iostream>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <numeric>
#include <bitset>
#include <cmath>

static const int MOD = 1000000007;
using ll = long long;
using u32 = unsigned;
using u64 = unsigned long long;
using namespace std;

template<class T> constexpr T INF = ::numeric_limits<T>::max()/32*15+208;

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

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