print((io.read():gsub("[A-z]+",function(x)return#x.."_"..x end)))