puts [subst [regsub -all {[1-9]\d*} [read stdin] {[expr &+1]}]]