#include<bits/stdc++.h>
using namespace std;
int main(){
	int i=1;
	float h,s;
	h=20;
	s=h;
	while(i<=9){
	    h=h/2;
		s=s+h*2;
		i++;
}
    cout<<s<<endl;
    cout<<h/2<<endl;
}
/**************************************************************
	Problem: 1062
	User: fuyijun
	Language: C
	Result: Compile Error
****************************************************************/