Question
Arjun's Bicycle
In a peaceful village, a young boy named Arjun dreams of buying his first bicycle. To make this dream a reality, he starts saving money in his piggy bank.
On the first day, which is a Monday, he puts in 1 coin. Each day from Tuesday to Sunday, he adds 1 more coin than the previous day.
On every following Monday, Arjun increases his deposit by 1 more coin than the Monday before.
Your task is to help Arjun calculate how much money he will have saved in total after n days, as he continues this daily saving routine. Can you determine the total amount in his piggy bank at the end of day n?
On the first day, which is a Monday, he puts in 1 coin. Each day from Tuesday to Sunday, he adds 1 more coin than the previous day.
On every following Monday, Arjun increases his deposit by 1 more coin than the Monday before.
Your task is to help Arjun calculate how much money he will have saved in total after n days, as he continues this daily saving routine. Can you determine the total amount in his piggy bank at the end of day n?
Input
The first and only line of the input contains a single integer N, denoting the number of days.
Constraints
1 ≤ N ≤ 365
Constraints
1 ≤ N ≤ 365
Output
An integer representing the total amount of money Arjun will have in the piggy bank at the end of the nth day.
Example
Sample Input
5
Sample Output
15
Explanation
Arjun saves money for 5 days. Here's the breakdown of the money he puts in each day:
Day 1 (Monday): $1
Day 2 (Tuesday): $2
Day 3 (Wednesday): $3
Day 4 (Thursday): $4
Day 5 (Friday): $5
The total amount he will have in the piggy bank at the end of the 5th day is $1 + $2 + $3 + $4 + $5 = $15.
5
Sample Output
15
Explanation
Arjun saves money for 5 days. Here's the breakdown of the money he puts in each day:
Day 1 (Monday): $1
Day 2 (Tuesday): $2
Day 3 (Wednesday): $3
Day 4 (Thursday): $4
Day 5 (Friday): $5
The total amount he will have in the piggy bank at the end of the 5th day is $1 + $2 + $3 + $4 + $5 = $15.