Replace digit
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given the number n, as well as digits a and b. Replace in this number every occurrence of the digit a to digit b.
Input
Three numbers n, a, b (1 ≤ n ≤ 10^9
).
Output
Print the resulting number. Do not print the leading zeros.
Examples
Input #1
Answer #1
Submissions 14K
Acceptance rate 28%