Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Books For War Victims

By whoisshihab · Limits 1s, 512 MB

Little Prohor is a war victim. She lives in HellOnEarth.

She loves reading book. Her situation can't stop her from gaining knowledge. Besides, she also inspires her friends and they too started to love reading books.

There, 3 children can share a book. So, 2 books are enough for 6 children.

We are planning to send them a few books.
Help us calculate the minimum number of books to buy for those children .

Input

Input will contain an integer N ( 1 ≤ N ≤ 230 , where N is the number of children).

Output

Print the number of books required for the children.

Samples

InputOutput
6
2
InputOutput
3
1

Discussion

Statistics


89% Solution Ratio

ArpancseEarliest, Mar '18

SAIM29Fastest, 0.0s

Mili290Lightest, 0 B

touhidurrrShortest, 18B

Submit

Login to submit

Related Contests

Toph uses cookies. By continuing you agree to our Cookie Policy.