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 <cstdio>
using namespace std;
int main()
{
	double a, s = 0.0;
	while (cin >> a)
	{
		if (cin.eof()) return 0;
		s = a;
		for (int i = 2; i <= 10; i++)
		{
			if (i % 2)	a /= 3.0;
			else		a *= 2.0;
			s += a;
		}
		printf("%.8lf\n", s);
	}
	return 0;
}

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

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

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

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    double a;

    while (std::cin >> a) {
        double ans = a;
        a *= 2.;

        for (int i = 2; i <= 10; ++i) {
            ans += a;
            a = (i & 1) ? a * 2. : a / 3.;
        }
        std::cout << std::fixed << std::setprecision(6)
                  <<  ans << std::endl;
    }

    return 0;
}

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

using namespace std;

void Solution()
{
    double a[10];
    
    while(cin>>a[0])
    {
        double sum = a[0]; //to save sum
        
        for(int i = 1; i < 10; i++)
        {
            if(i % 2 == 1)
            {
                a[i] = a[i - 1] * 2;
            }
            else
            {
                a[i] = a[i - 1] / 3;
            }
            
            sum += a[i];
        }
        
        cout<<fixed<<setprecision(8)<<sum<<endl;
    }
}

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

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

using namespace std;

int main(void){
	while( 1 ){
		double s = 0;
		double a;

		cin >> a;
		if( cin.eof() ) break;

		s += a;
		for(int i = 2; i <= 10; i++){
			if( i % 2 == 0 ){
				s += a * 2;
				a = a * 2;
			}else{
				s += a / 3;
				a = a / 3;
			}
		}
		printf("%10.8f\n", s);
	}
}

C++: #include<iostream>
#include<iomanip>
using namespace std;
double a,s;int c;
main()
{
    while(cin>>a)
    {
        s=a;
        for(c=2;c<=10;c++)a=c%2?a/3:a*2,s+=a;
        cout<<fixed<<setprecision(9)<<s<<endl;
    }
}

C++: #include <iostream>
#include <csdio>
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>
using namespace std;

int main(){
	double a;
	
	while(cin >> a){
		double s = a, prev = a;
		for(int i=2; i<=10; i++){
			if(i%2 == 0){
				prev *= 2;
				s+=prev;
			}else{
				prev /= 3;
				s+=prev;
			}
			cout << i << " ";
		}
		cout << s << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <deque>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <bitset>
#include <algorithm>
#include <numeric>
#include <complex>
#include <functional>
#include <utility>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cctype>

using namespace std;

#define dump(n) cout<<"# "<<#n<<"="<<(n)<<endl
#define debug(n) cout<<__FILE__<<","<<__LINE__<<": # "<<#n<<"="<<(n)<<endl
#define repi(i,a,b) for(int i=int(a);i<int(b);i++)
#define rep(i,n) repi(i,0,n)
#define iter(c) __typeof((c).begin())
#define tr(c,i) for(iter(c) i=(c).begin();i!=(c).end();i++)
#define allof(c) (c).begin(),(c).end()
#define mp make_pair

typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int,int> pii;

int main()
{
	for(double x;cin>>x;){
		vector<double> xs(1,x);
		rep(i,9){
			if(i&1)
				xs.push_back(xs[i]/3);
			else
				xs.push_back(xs[i]*2);
		}
		printf("%.8f\n",accumulate(allof(xs),0.0));
	}
	
	return 0;
}

C++: #include <stdio.h>

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

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

int main()
{
	double a;
	while(1) {
		cin >> a;
		printf("%.8f\n", 211.0 / 27.0 * a);
	}
	return 0;
}

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

using namespace std;

double data[10];
double n;
double ans=0;

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

		for(int i=0;i<10;i++)ans += data[i];

		printf("%0.8lf\n",ans);
	}
}

C++: #include<cstdio>


double s[10];

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

int main()
{
	double a;
	while(scanf("%lf",&a)!=EOF)
	{
		s[0]=a;
		set();
		double ans=0.0;
		for(int i=0;i<10;i++)
		{
			ans+=s[i];
		}
		printf("%lf\n",ans);
	}
	return 0;
}

C++: #include <iostream>
#include <cstdio>
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 <string>
using namespace std;

int main()
{
	double a[11];
	double sum;
	while (cin >> a[1])
	{
		sum = a[1];
		for (int i = 2; i < 11; i++)
		{
			if (i % 2 == 0)
			{
				a[i] = 2 * a[i-1];
			}
			else
			{
				a[i] = a[i-1] / 3;
			}
			sum += a[i];
		}
		cout << sum << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<string>
#include<vector>
#include<cstdio>
#include<sstream>
#include<algorithm>
#include<cmath>
#include<map>
#include<functional>
#include<queue>
#include<stack>
#include<set>
using namespace std;


int main(){
	double a[10];
	double now;
	while(cin>>now){
	for(int i=0;i<10;i++)a[i]=0.0;
	a[0]=now;
		for(int i=1;i<10;i++){
			if(i%2==1)a[i]=a[i-1]*2;//??¶??°
			else a[i]=a[i-1]/3;
		}
		double sum=0.0;
		for(int i=0;i<10;i++)sum+=a[i];
		printf("%.15lf",sum);
	}
}

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

int main(void){
  double a;
  while(1){
  if(scanf("%lf", &a) == EOF) break;
  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("%.9lf\n", ans);
  }
  return 0;
}

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

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

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

C++: #include <iostream>
#include <iomanip>
using namespace std;
int main(){
	double a;
	while(cin >> a){
		cout << setprecision(20) << a*211/27 << endl;
	}
}

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