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<bits/stdc++.h>
using namespace std;
int main(){
  double n;
  while(cin>>n){
    double now=n,sum=n;
    for(int j=0;j<9;j++){
      if(j%2==0){
	now=now*2;
	sum+=now;
      }else if(j%2==1){
	now=now/3;
	sum+=now;
      }
    }
    printf("%.8f\n",sum);
  }
  return 0;
}

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

using namespace std;

int main(void) {
  
  double num;
  while(cin >> num) {
    cout << setprecision(8) << 3 * num + 390 * num / 81 << endl;
  }

  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;

long double num[10];
int main()
{
	while (cin){
		cin >> num[0];
		auto sum = 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;
			}
			sum += num[i];
		}
		cout << setprecision(10) << sum << endl;
	}
		return 0;
}

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

using namespace std;

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

C++: #include <iostream>
#include <iomanip>
#include <cstdio>
#include <vector>
#include <map>
#include <cmath>
#include <algorithm>
#include <string>
#define shosu(x) fixed<<setprecision(x)
using namespace std;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,P> pip;
typedef long long ll;
const int inf=1<<30;
const double pi=acos(-1);

double n;

int main(){
	cout<<shosu(9);
	while(cin>>n){
		vector<double> num(10);
		double ans=0;
		num[0]=n;
		for(int i=1;i<10;i++){
			if(i%2) num[i]=num[i-1]*2;
			else num[i]=num[i-1]/3;
		}
		for(int i=0;i<10;i++){
			ans+=num[i];
		}
		cout<<ans<<endl;
	}
}

C++: #include<cstdio>
#include<algorithm>
#include<vector>
#include<string>
#include<iostream>
#include<queue>
#include<map>
#include<set>
#include<complex>
#include<stack>
#include<cmath>

using namespace std;

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

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

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

int main(){
double a[11],s;
int i;

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

return 0;
}

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

#define loop(v, f, l) for(int v = (f), v##_ = (l); v < v##_; ++v)

using namespace std;

typedef long long int lint;
static inline int in(){ int x; scanf("%d", &x); return (x); }
static inline lint inl(){ lint x; scanf("lld", &x); return (x); }

double sequence(double a)
{
	double ans = a;
	loop(i, 2, 11)
	{
		if( i % 2 == 0 )
		{
			a *= 2;
			ans += a;
		}
		else
		{
			a /= 3;
			ans += a;
		}
	}
	return ans;
}

int main()
{
	double a;

	while( scanf("%lf", &a) != EOF )
	{
		printf("%lf\n", sequence( a ) );
	}

	return (0);
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	double a;
	while (cin>>a) 
	{
		double ans=a;
		for(int i = 2; i < 11; ++i)
		{
			if(i%2==0) a=a*2;
			else a=a/3;
			ans+=a;
		}
		printf("%.9lf\n",ans);
	}
  return 0;
}

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

int main()
{
	int i;
	double a, sum;
	cout<<setprecision(8);
	cout<<setiosflags(ios::fixed);
	while (cin>>a) {
		sum = 0.0;
		for (i = 1; i <= 10; i++) {
			sum += a;
			if (i&1) a *= 2.0;
			else a /= 3.0;
		}
		cout<<sum<<endl;
	}
}

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

  return 0; 
}

C++: #include <iostream>
#include <iomanip>
#include <sstream>
#include <stdio.h>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <math.h>
#include <utility>
#include <string>
#include <ctype.h>
#include <cstring>
#include <cstdio>
#include <sstream>
#include <functional>

using namespace std;

int main()
{
	long double a, b, sum;
	while (1)
	{
		cin >> a;
		sum = a;
		for (int i = 0; i < 9; i++)
		{
			if (i % 2 == 0)
			{
				b = a * 2;
				sum = sum + b;
			}
			else
			{
				b = a / 3;
				sum = sum + b;
			}
			a = b;
		}
		cout << fixed << setprecision(8) << sum << endl;
	}

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
   double a;
   
   while(cin>>a){
       double b=0,c=0;
       b=a;
       c+=a;
       for(int i=2;i<=10;i++){
           if(i%2==0) b*=2;
           else if(i%2==1) b/=3;
           c+=b;
       }
       cout<<fixed<<c<<endl;
       
   }
   
    return 0;
}

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

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

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

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

int main() {

  double a;

  while( cin >> a ) {

    double ans = 0.00;
    for ( int i = 0; i < 10; i++ ) {
      ans += a;
      if ( ( i % 2 ) == 0 ) {
	a *= 2;
      }else {
	a /= 3;
      }
    }
    cout << fixed << setprecision(10) << ans << endl;

  }

  return 0;

}

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.;
		cout << res << endl;
	} // end loop
		
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	double sum,s,p;
	while((cin>>s)!=0){
		sum=s;
		p=s*100000000;
		for(int i=1;i<10;i++){
			if(i%2==1)s=s*2;
			if(i%2==0)s=s/3;
			sum=sum+s;
		}
		cout<<int(sum)<<'.';
		sum=p;
		for(int i=1;i<10;i++){
			if(i%2==1)p=p*2;
			if(i%2==0)p=p/3;
			sum=sum+p;
			while(sum>100000000)sum=sum-100000000;
		}
		if(int(sum)%10>5)cout<<int(sum)+1<<endl;
		else cout<<int(sum)<<endl;
	}
	return 0;
}