Problem A
Bruni Íslenskra Fræða
Languages
en
is
Atli has finally gone off the deep end. After being made to
read yet another Icelandic Saga something broke and he’s going
berserk in Hús Íslenskra Fræða. He’s decided to host a book
burning and is trying to burn as many of the manuscripts and
books in the building as possible. He’s started a fire that
will last
Input
The input starts with a line with two integers
Output
Print the number of seconds Atli can keep the fire going.
Sample Input 1 | Sample Output 1 |
---|---|
3 10 10 20 15 5 12 6 |
36 |