Codeforces Round 348 (VK Cup 2016 Round 2, Div. 2 Edition)
A
Little Artem and Presents
Codeforces
800
原题
←B →
翻译中…

Little Artem got $*n*$ stones on his birthday and now wants to give some of them to Masha. He knows that Masha cares more about the fact of receiving the present, rather than the value of that present, so he wants to give her stones as many times as possible. However, Masha remembers the last present she received, so Artem can't give her the same number of stones twice in a row. For example, he can give her $3$ stones, then $1$ stone, then again $3$ stones, but he can't give her $3$ stones and then again $3$ stones right after that.

翻译中…

How many times can Artem give presents to Masha?

翻译中…

Input

翻译中…

The only line of the input contains a single integer $*n*$ ($1 ≤ *n* ≤ 10^{9}$) — number of stones Artem received on his birthday.

翻译中…

Output

翻译中…

Print the maximum possible number of times Artem can give presents to Masha.

翻译中…

Note

翻译中…

In the first sample, Artem can only give $1$ stone to Masha.

翻译中…

In the second sample, Atrem can give Masha $1$ or $2$ stones, though he can't give her $1$ stone two times.

翻译中…

In the third sample, Atrem can first give Masha $2$ stones, a then $1$ more stone.

翻译中…

In the fourth sample, Atrem can first give Masha $1$ stone, then $2$ stones, and finally $1$ stone again.

翻译中…

样例

Input #1
1
Output #1
1
InputCopy OutputCopy
Input #2
2
Output #2
1
InputCopy OutputCopy
Input #3
3
Output #3
2
InputCopy OutputCopy
Input #4
4
Output #4
3
InputCopy OutputCopy
题目信息
题号
669A
时间限制
2 s
内存限制
256 MB
标签
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。