#include <iostream>
#include <cstdlib>

int main(int argc, char *argv[])
{
	int n;
	std::cin >> n;
	int N= 1;
	for (int k=0; k<n; ++k) 
		N*= 2;
	float h= 1.0/N;
	float s= 0.0;	
	for (int k=0; k<N; ++k)
		s+= h;
	std::cout << "s= " << s << std::endl;
	std::cout << "N= " << N << std::endl;
	return EXIT_SUCCESS;
}
