Codeforces Round 524 (Div. 2)
A
Petya and Origami
Codeforces
800
原题
←B →
翻译中…

Petya is having a party soon, and he has decided to invite his $n$ friends.

翻译中…

He wants to make invitations in the form of origami. For each invitation, he needs two red sheets, five green sheets, and eight blue sheets. The store sells an infinite number of notebooks of each color, but each notebook consists of only one color with $k$ sheets. That is, each notebook contains $k$ sheets of either red, green, or blue.

翻译中…

Find the minimum number of notebooks that Petya needs to buy to invite all $n$ of his friends.

翻译中…

Input

翻译中…

The first line contains two integers $n$ and $k$ ($1\leq n, k\leq 10^8$) — the number of Petya's friends and the number of sheets in each notebook respectively.

翻译中…

Output

翻译中…

Print one number — the minimum number of notebooks that Petya needs to buy.

翻译中…

Note

翻译中…

In the first example, we need $2$ red notebooks, $3$ green notebooks, and $5$ blue notebooks.

翻译中…

In the second example, we need $5$ red notebooks, $13$ green notebooks, and $20$ blue notebooks.

翻译中…

样例

Input #1
3 5
Output #1
10
InputCopy OutputCopy
Input #2
15 6
Output #2
38
InputCopy OutputCopy
题目信息
题号
1080A
时间限制
1 s
内存限制
256 MB
标签
数学

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