No.835 Juice
タグ : / 解いたユーザー数 569
作問者 :
nmnmnmnmnmnmnm
/ テスター :
Problem Statement
You bought $N$ bottles of juice, each containing $1.5$ liters, and transferred the juice into $M$ empty containers, each with a capacity of $1$ liter.
After the transfer, all $M$ of the $1$-liter containers were full, and the leftover juice that did not fit into the containers was less than 1 liter.
Given $N$, find $M$.
Input
$N$
$N$ is a positive integer. $1 \le N \le 1000000000 = 10^9$.
Output
Output the answer on one line.
Print a newline at the end.
Sample
Sample 1
Input
1
Output
1
You bought $1$ bottle of $1.5$ liters of juice.
You transferred it into $1$ container of $1$ liter, and $0.5$ liters of juice, which is less than $1$ liter, was left over.
Sample 2
Input
2
Output
3
You bought $2$ bottles of $1.5$ liters of juice.
You transferred it into $3$ containers of $1$ liter each, and there was no leftover juice of less than $1$ liter.
Sample 3
Input
3
Output
4
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。