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