#include <iostream>
#include <string>
#include <sstream>

using namespace std;

const char *TABLE[] = {
	"",
	"',.!?",
	"abcABC",
	"defDEF",
	"ghiGHI",
	"jklJKL",
	"mnoMNO",
	"pqrsPQRS",
	"tuvTUV",
	"wxyzWXYZ"
};

int main(){
	string line;
	while(cin >> line){
		stringstream ss;
		int prev = 0, cnt = 0;
		if(line[line.size() - 1] != '0'){ line += "0"; }
		for(int i = 0; i < line.size(); ++i){
			int c = line[i] - '0';
			if(c == prev){
				if(c == 0){
					ss << " ";
				}else{
					if(TABLE[c][++cnt] == '\0'){ cnt = 0; }
				}
			}else{
				if(prev != 0){ ss << TABLE[prev][cnt]; }
				cnt = 0;
			}
			prev = c;
		}
		cout << ss.str() << endl;
	}
	return 0;
}