The number of even n-digit numbers 2
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given two natural numbers n and m, determine how many even natural numbers with exactly n digits are greater than m.
Input
Two natural numbers n and m provided on a single line, separated by a space (1 ≤ n ≤ 12
, 1 ≤ m ≤ 10^12
).
Output
Output the number of even n-digit numbers that are greater than m.
Examples
Input #1
Answer #1
Submissions 603
Acceptance rate 30%