# Arup Guha
# 11/9/2024
# Solution to A Shortcut to What

n = int(input())
print(3*n+5)
