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

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 <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int main()
{
    for(;;){
        vector<double> a(10);
        if(!(cin >> a[0]))
            return 0;

        for(int i=1; i<10; ++i){
            if(i % 2 == 1)
                a[i] = a[i-1] * 2;
            else
                a[i] = a[i-1] / 3;
        }

        printf("%.10f\n", accumulate(a.begin(), a.end(), 0.0));
    }
}

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

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

C++: #include <iostream>
#include <cstdio>
#include <stdio.h>
using namespace std;
int main(){
	double a;
	while(cin>>a){
		double sum=211.0*a/27.0;
		printf("%.8lf\n",sum);
	}
	return 0;
}

C++: //include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <queue>
#include <iterator>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

using namespace std;

//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}

//math
//-------------------------------------------
template<class T> inline T sqr(T x) {return x*x;}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//constant
//--------------------------------------------
const double EPS = 1e-10;
const double PI  = acos(-1.0);

//clear memory
#define CLR(a) memset((a), 0 ,sizeof(a))

//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

int gcd(int a, int b){
   int tmp;
   while(a%b==0){
      tmp=a%b;
      a=b;
      b=tmp;
   }
}

int lcm(int a,int b){
   return a*b/gcd(a,b);
}

bool prime_number(int n){
   if(n < 2){
      return false;
   }
   else if(n == 2){
      return true;
   }
   if(n % 2 == 0){
      return false;
   }
   for(int i=3;i<=n/i;i+=2){
      if(n % i == 0) return false;
      return true;
   }
}

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

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

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

int main()
{
	double a;

	while (cin >> a) {

		double s = a;

		for (int i = 0; i < 4; i++) {
			a *= 2;
			s += a;
			a /= 3;
			s += a;
		}

		a *= 2;
		s += a;

		cout << setiosflags(ios::fixed | ios::showpoint) << setprecision(10) << s << endl;
	}

	return 0;
}

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;
			}
		}
		cout << sum << endl;
	}
}

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

C++: #include<iostream>
#include<cstdio>
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;
		}
		printf("%f\n",sum);
	}
	return 0;
}

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

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

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;
		}
		cout<<sum<<endl;
	}
}

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

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

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

    return 0;
}

C++: #include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
template<class t>
using table = vector<vector<t>>;
const ld eps=1e-9;

//// < "d:\d_download\visual studio 2015\projects\programing_contest_c++\debug\a.txt" > "d:\d_download\visual studio 2015\projects\programing_contest_c++\debug\b.answer"

int main() {
	ld a;
	while (cin >> a) {
		ld ans = a*7.81481481;
		cout << setprecision(22)<<fixed<<ans << endl;
		
	}
	return 0;
}

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\n",sum);
	}
	return 0;
}