#B4017. Counting Friendship Months

    ID: 11674 Type: Default 1000ms 256MiB

Counting Friendship Months

Counting Friendship Months

Feng and Qing were once very good friends. Qing once said, "... maybe we might not last until the end, but friendship can last a lifetime." Feng believed in that too. However, promises made in words often prove powerless.

They met in August 2016. August 2016 was the 1st month of their acquaintance, September 2016 the 2nd month, and so on.

Now, given that the current date is \(x\) years and \(y\) months, determine which month of their friendship it is. The answer is computed by the formula: \[ \text{result} = (x - 2016) \times 12 + (y - 8) + 1 \]

inputFormat

The input consists of two integers \(x\) and \(y\) separated by a space, where \(x\) represents the current year and \(y\) represents the current month.

outputFormat

Output a single integer representing the month count of their friendship.

sample

2016 8
1