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 <cstdio>
#include <utility>
using namespace std;

#define gcu getchar_unlocked
#define ii inline int in
#define is inline bool scan
ii(int c) {
	int n = 0;
	bool minus = false; if (c == '-') minus = true, c = gcu();
	do {n = 10 * n + (c - '0'), c = gcu();} while (c >= '0');
	//return n; }
	return minus ? -n : n; }
ii() {return in(gcu());}
is(int &n){int c=gcu();return c==EOF?false:(n=in(c),true);}
is(char &c){c=gcu();gcu();return c!=EOF;}
//is(string &s){int c;
//	for(;;){c=gcu();if(c=='\n'||c==' ')return true;else if(c==EOF)return false;s+=c;}}
#undef ii
#define pcu putchar_unlocked
template <typename T>
void out(T n) {
	static char buf[20];
	char *p = buf;
	if(n < 0) pcu('-'), n *= -1;
	if (!n) *p++ = '0';
	else while (n) *p++ = n % 10 + '0', n /= 10;
	while (p != buf) pcu(*--p); }
void out(const char *s){while(*s)pcu(*s++);}
void out(char c){pcu(c);}
//void out(string &s){for (char c: s) pcu(c);}
template <typename head, typename... tail>
void out(head&& h, tail&&... t){out(h);out(move(t)...);}
//template <typename T>
//void out(vector<T> &v){for(T &x:v)out(&x == &v[0]?"":" "),out(x);out('\n');}
#undef svo

int main() {
	double a;
	while (scanf("%lf", &a) != EOF)
		printf("%.8lf\n", a * 211/27);
}

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

using namespace std;
 
int main()
{
    double n, s[10];
     
    while (cin >> n) {
        double ans = 0.0;
        s[0] = n;         
        for (int i = 1; i < 10; i++) {
            if ((i+1) % 2 == 0) {
                s[i] = 2.0 * s[i-1];
            } else {
                s[i] = s[i-1] / 3.0;
            }
        }
        for (int i = 0; i < 10; i++) {
            ans += s[i];
        }
        printf("%.8f\n" ,ans);
    }
    return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cassert>
#include <iostream>
#include <cctype>
#include <sstream>
#include <string>
#include <list>
#include <vector>
#include <queue>
#include <set>
#include <stack>
#include <map>
#include <utility>
#include <numeric>
#include <algorithm>
#include <iterator>
#include <bitset>
#include <complex>
#include <fstream>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)
template<class T> T RoundOff(T a){ return int(a+.5-(a<0)); }
template<class T, class C> void chmax(T& a, C b){ if(a < b) a = b; }
template<class T, class C> void chmin(T& a, C b){ if(b < a) a = b; }
template<class T, class C> pair<T, C> mp(T a, C b){ return make_pair(a, b); }

int main()
{
	float a;
	while(cin >> a)
	{
		float num[10]; num[0] = a;
		REP(i, 1, 10)
			num[i] = i % 2 ? num[i-1] * 2 : num[i-1] / 3;

		float res = 0;
		rep(i, 10)
			res += num[i];

		cout <<  setprecision(9) << res << endl;
	}
}

C++: #include<iostream>

using namespace std;
int main()
{
  double s;
  cin>>s;
  double sum=s;
  for(int i=2;i<=10;i++)
    {
      if(i%2==0)
	s*=2;
      else
	s/=3;
      sum+=s;
    }
  cout<<sum<<endl;
}

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

int main(void){
	double s[11];
	while(cin>>s[1]){
		for(int i=2;i<11;i++)s[i]=((i%2==0)?(s[i-1]*2):(s[i-1]/3));
		double sum=0;
		for(int i=1;i<11;i++)sum+=s[i];
		printf("%.8lf",sum);
	}
	return 0;
}

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

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef complex<double> P;
typedef pair<int,int> pii;
#define REP(i,n) for(ll i=0;i<n;++i)
#define REPR(i,n) for(ll i=1;i<n;++i)
#define FOR(i,a,b) for(ll i=a;i<b;++i)

#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define DEBUG_VEC(v) cout<<#v<<":";REP(i,v.size())cout<<" "<<v[i];cout<<endl
#define ALL(a) (a).begin(),(a).end()

#define MOD (ll)(1e9+7)
#define ADD(a,b) a=((a)+(b))%MOD
#define FIX(a) ((a)%MOD+MOD)%MOD

int main(){
  double a;
  cout.precision(10);
  while(~scanf("%lf",&a)){
    double sum = a;
    REPR(i,10){
      if(i%2==0)a /= 3.0;
      else a *= 2.0;
      sum += a;
    }
    cout<<fixed<<sum<<endl;
  }
  return 0;
}

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

int main(){
    double base = 7.81481481;
    double a;
    while( scanf("%lf", &a) != EOF ) printf("%lf\n", base*a);
    return 0;
}

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

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

C++: #include<iostream>
#include<math.h>
#include<vector>
#include<algorithm>
#include<cstdio>
using namespace std;

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

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

#define INPUT_FROM_FILE (0) 
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(){
	double a, pre_a;
	double result = 0;

#if INPUT_FROM_FILE
	//std::ifstream ifs("test.txt");
	FILE *fp = fopen("test.txt", "r");
#endif

#if INPUT_FROM_FILE
	while(fscanf(fp, "%lf", &a) != EOF){
#else
	while(scanf("%lf", &a) != EOF){
#endif

		result = a;

		pre_a = a;
		for(int i = 2; i <= 10; i++){
			if(i % 2 == 0){
				a = 2 * pre_a;
			}
			else{
				a = pre_a / 3.0;
			}
			result += a;
			pre_a = a;
		}
		printf("%.7lf\n", result);
	}

#if INPUT_FROM_FILE
	fclose(fp);
#endif
	return 0;
}

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

int main(){
  int i,j,n;
  double sum=0,im,im2[1000];

  while(cin >> im){
    sum=0;
    im2[1]=im;
    sum+=im;
    for(i=2;i<=10;i++){
      if(i%2 == 0){
	im2[i]=im2[i-1]*2;
	sum+=im2[i];
      }
      else{
	im2[i]=im2[i-1]/3;
	sum+=im2[i];
      }
      //cout << "im2["<<i<<"] = "<<im2[i]<<endl;

    }

    printf("%.8f\n",sum);

  }

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 % 2 == 0){
        a = 2 * a;
        sum += a;
      }else{
        a = a / 3;
        sum += a;
      }
    }
    printf("%.8f\n", sum);
  }
  return 0;
}

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

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

    return 0;
}

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

using namespace std;

int ans(int a, int b, int n)
{
    int r=0;
    int t;
    a -= b*(a/b);
    for(int i=0;i<n;++i)
    {
        a *= 10;
        t = a/b;
        r += t;
        a -= b*t;
    }
    return r;
}
int main()
{
    int a,b,n;
    while(cin >> a >> b >> n) cout << ans(a,b,n) << endl;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
  double a,s;
  while(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;
}