#include int main() { int n; std::cin >> n; double a[101]; a[0] = 4; a[1] = 3; for(int i = 2; i <= n; i++) { a[i] = (4.75 * a[i - 1]) - (3 * a[i - 2]); } std::cout << a[n] << std::endl; return 0; }