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