print(4 * (pow(3 / 4, int(input()))))