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 <math.h>
using namespace std;

double a,ans;

int main() {
	while(cin>>a){
		ans=a;
		for(int i=0;i<9;i++){
			if(i%2==0)a=a*2;
			else a=a/3;
			ans+=a;
		}
		printf("%f10\n",ans);
	}
}

C++: #include <iostream>

using namespace std;

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

int main()
{
	solve();
	return(0);
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
#define int long long
signed main(){
	double a;
	while( scanf("%lf", &a) != EOF ){
		double sum = a;
		for(int i=1;i<10;i++){
			if(i%2 == 0) a /= 3;
			else a *= 2;
			sum += a;
		}
		cout << sum << endl;
	}
	return 0;
}

C++: #include <cstdio>
#include<iostream>
 
using namespace std;
  
int main(void){
 
	long double a,before,sum;
 
    while(cin>>a){
		before=a;
		sum=before;
		for(int i=2;i<=10;i++){
			if(i%2==0) before*=2;
			else before/=3;
			sum+=before;
		}
			printf("%.8f\n",sum);
    }
 
    return 0;
}

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

long double a=0;

int main()
{

    while(cin>>a)
    {
    
   long double s=0;
      
    s=a;
    for(int i=0;i<4;i++)
    {
    a=2*a;
    s=s+a;
    a=a/3;
    s=s+a;
  
    }
    s=s+a*2;
    cout<<setprecision(10)<<s<<endl;
    }
    return 0;
}

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

int main(){
  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<<c<<endl;
  }   
  return 0;
}

C++: #include<iostream>
#include<iomanip>
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.0;
			else
				a=tmp/3.0;

			tmp = a;

			sum+=a;
		}

		cout << fixed << setprecision(8) << sum << endl;
	}
	return 0;
}

C++: #include <string>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <vector>
#include <queue>
#include <set>
#include <utility>
#include <algorithm>
#include <numeric>
#include <iostream>
#include <iterator>
#include <sstream>

using namespace std;

int main()
{
	double n;
	while(cin>>n) printf("%.15lf\n",n * 7.81481481481481481);
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
  double n,ans;
  cin >> n;
    ans = n;
    for(int i = 2 ; i <= 10 ; i++){
      if(i%2 == 1){
	n = n/3;
	ans += n;
      }
      else{
	n*=2;
	ans +=n;
      }
    }
    cout << ans << endl;

}

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

using namespace std;

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

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

C++: #include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cmath>
#include <memory.h>
#include <cassert>
#include <iomanip>

using namespace std;


#define all(c) ((c).begin()), ((c).end())
#define debug(c) cerr << "> " << #c << " = " << (c) << endl;
#define iter(c) __typeof((c).begin())
#define present(c, e) ((c).find((e)) != (c).end())
#define cpresent(c, e) (find(all(c), (e)) != (c).end())
#define tr(i, c) for (iter(c) i = (c).begin(); i != (c).end(); i++)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, a, b) for (int i = (int)(a); i <= (int)(b); i++)

#define mp make_pair
#define fst first
#define snd second
#define pb push_back


const double EPS = 1e-10;


typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
typedef complex<double> P;


int main() {
	for (double a; cin >> a; ) {
		double sum = a;
		double p = a;
		rep(i, 9) {
			if (!(i & 1)) p *= 2;
			else p /= 3;
			sum += p;
		}
		cout << setprecision(10) << sum << endl;
	}
	
	return 0;
}

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

int main() {
  double a;
  cout.precision(10);
  while(cin>>a) {
    double sum = a;
    for(int i=2; i<=10; ++i) {
      if(i%2==0) {
        a *= 2;
        sum += a;
      }else{
        a /= 3;
        sum += a;
      }
    }
    cout<<sum<<endl;
  }
}

C++: #include<bits/stdc++.h>
using namespace std;
double Sequence(double a,int n)
{
    if(n==10)return a*2;
    if(n%2==0)return a*2+Sequence(a*2,n+1);
    if(n==1)return a+Sequence(a,n+1);
    return a/3+Sequence(a/3,n+1);
}
int main()
{
    double n=0,a;
    while(cin>>a){
        n=Sequence(a,1);
        cout<<setprecision(8)<<n<<endl;
    }
}

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()
{
	long 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;
		}

		cout << ans << endl;
	}
}

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

using namespace std;

int main(){

	double n;
	while(cin>>n){
		double nums[11];
		double sum=n;
		nums[0]=n;
		for(int i = 1; i < 10; i++){
			if(i%2)
				nums[i]=nums[i-1]*2;
			else
				nums[i]=nums[i-1]/3;
			sum+=nums[i];
		}
		printf("%.6f\n",sum);
	}

	return 0;
}

C++: #include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){

	double a;

	while(cin>>a){
        double ans=0;
        ans+=a;
        for(int i=2;i<=10;i++){
            if(i%2==0)a*=2;
            else a/=3;
            ans+=a;
        }
        printf("%llf\n",ans);

	}
	return 0;
}

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

int main() {
    double a;
    while (cin >> a) {
        printf("%.8f\n", a * 211 / 27);
    }
}

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

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

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