(let ((n (read))) (print (/. (+ (* n) (* n 6)) 2)))