# Original Paxa; valid nonnegative integer pack count.
ITEMS_PER_PACK = 6
packs = int(input())
items = packs * ITEMS_PER_PACK
print(items)
