Drop links or images here to add them to the editor.

Category Discount

Read the price of a product and a category:

Apply the corresponding discount:

Use nested if statements with conditions.

Input

Two integers separated by a space:

  1. price
  2. category

Output

Print the final price after the discount.

Example

Input:

10000 1

Output:

7000