You are given S contains only '1' - '5'. Replace it with the minimum digit of them. Constraint * 1 ≤ |S| ≤ 15