#P6488. Newspaper Party Participation Discrepancies

    ID: 19702 Type: Default 1000ms 256MiB

Newspaper Party Participation Discrepancies

Newspaper Party Participation Discrepancies

After a huge party, five newspapers reported different numbers for the number of participants, although these numbers might be incorrect. You are given the total area of the venue, L square meters, and the average number of people per square meter, p. The actual number of participants is calculated as L \times p. For each newspaper's reported figure, compute the difference from the actual participation count.

inputFormat

The input consists of two lines. The first line contains two numbers L and p (which may be integer or floating-point numbers) representing the area of the venue in square meters and the average people density, respectively. The second line contains five integer values, each representing the number reported by one of the newspapers.

outputFormat

Output five numbers separated by a space. Each number is the difference between the reported value and the actual number of participants (L \times p) for the respective newspaper: (reported number - L \times p).

sample

100 2
150 180 200 130 170
-50 -20 0 -70 -30