#K6701. Minimum Packs Needed

    ID: 32547 Type: Default 1000ms 256MiB

Minimum Packs Needed

Minimum Packs Needed

You are given two integers (p) and (c) representing the number of participants and the number of colored pencils each participant requires, respectively. Each pack contains 6 colored pencils. Your task is to compute the minimum number of packs required to ensure that every participant gets at least (c) pencils. The answer is computed using the formula: [ \text{packs} = \left\lceil \frac{p \times c}{6} \right\rceil ] where (\lceil x \rceil) denotes the ceiling function, which rounds (x) up to the nearest integer.

inputFormat

A single line containing two space-separated integers (p) and (c) (with (1 \leq p, c \leq 1000)).

outputFormat

Output a single integer representing the minimum number of packs needed.## sample

10 15
25

</p>