Tìm số hạng thứ n

View as PDF



Time limit:
Scratch 5.0s

Problem type
Points: 800 Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Cho dãy số \(2,5,8,...\).

Em hãy tìm số hạng thứ \(n\) với \(n\) được nhập từ bàn phím.

Input

  • Một dòng gồm một số nguyên dương \(n\) \((0<n \leq 10^{9})\).

Output

  • Một dòng số hạng thứ \(n\).

Example

Test 1

Input
4
Output
11

Comments

There are no comments at the moment.