[THT - KV - TD24] Số thứ N


Submit solution

Points: 50
Time limit: 1.0s
Memory limit: 256M

Problem type

Cho dãy số có quy luật như sau: 3, 6, 11, 18, 27, 38, 51, ...

Hãy tìm số thứ N của dãy số trên.

Input: Gồm một số tự nhiên N (N ≤ 10 8).

Output: Gồm một số tự nhiên là kết quả của bài toán.

Scoring

Subtask 1 (50% số điểm): 10 ≤ N ≤ 1000.

Subtask 2 (50% số điểm): không có ràng buộc gì thêm.

Example

Input: 5

Output: 27


Comments

There are no comments at the moment.