N = int(input()) print(21 * N / 6)