Problems
Replace digit
Replace digit
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 ≤ 109
).
Output
Print the resulting number. Do not print the leading zeros.
Input example #1
123118 1 5
Output example #1
523558