#include<string>
#include<iostream>

using namespace std;

int main(){
	char *key[]={"","',.!?","abcABC","defDEF","ghiGHI","jklJKL","mnoMNO","pqrsPQRS","tuvTUV","wxyzWXYZ"};
	int len[]={0,5,6,6,6,6,6,8,6,8};

	for(string s;cin>>s;){
		int n=s.length();
		int bef=-1,cons=0;
		for(int i=0;i<n;i++){
			int token=s[i]-'0';
			if(bef==token)	cons++;
			else{
				if(cons>0){
					if(bef!=0)	cout<<key[bef][(cons-1)%len[bef]];
					else		for(int i=1;i<cons;i++)	cout<<' ';
				}
				cons=1;
			}
			bef=token;
		}
		if(cons>0){
			if(bef!=0)	cout<<key[bef][(cons-1)%len[bef]];
			else		for(int i=1;i<cons;i++)	cout<<' ';
		}
		cout<<endl;
	}

	return 0;
}