T =
[
	" ",
	"',.!?",
	"abcABC",
	"defDEF",
	"ghiGHI",
	"jklJKL",
	"mnoMNO",
	"pqrsPQRS",
	"tuvTUV",
	"wxyzWXYZ"
]

def translate(s)
	n, t, k = s.length, 0, s.size && s[0].to_i
	return "" if s.length == 0
	return " " + translate(s[1...n]) if k == 0
	t += 1 while t < n && s[t] == s[0]
	c = T[k][(t-1) % T[k].size]
	t += 1 if t < n && s[t] == '0'
	return c + translate(s[t...n])
end

while line = gets
	puts translate(line.chomp)
end