#include<stdio.h>
#include<string.h>
#include<stdlib.h>


int main(void){
	char in[1024],o[76];
	char t,*p;
	int i,l,a,b,f,c,e;
	char s[9][5]={".,!? ","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};

	

	while(scanf("%s",in)!=EOF){
		t='0';
		c=0;
		for(i=0;(unsigned int)i<strlen(in);i++){
			if(t=='0' && in[i]=='0')continue;
			else if(t!='0' && in[i]=='0'){
				p=&t;
				f=atoi(p);
				e=strlen(s[f-1]);
				printf("%c",s[f-1][(c-1)%e]);
				t='0';
				c=0;
				}
			else if(in[i]==t || (t=='0' && in[i]!='0')){
				t=in[i];
				c++;
				//printf("--%d\n",c);
			}
		}
		printf("\n");
	}
	
	return 0;
}
	