#include<algorithm>
#include<iostream>
#include<string>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
using namespace std;
int main(){
  int i,j,k;
  int ln;
  int a[10]={0,4,6,6,6,6,6,8,6,8};
  char s[10][9]={{""},{"',.!?"},{"abcABC"},{"defDEF"},{"ghiGHI"},{"jklJKL"},{"mnoMNO"},{"pqrsPQRS"},{"tuvTUV"},{"wxyzWXYZ"}};
  char t[10001];
  while(cin>>t){
    ln=strlen(t);
    for(i=0;i<ln;i=j){
      for(j=i;j<ln&&t[i]==t[j];j++);
      if(t[i]=='0'){
	for(k=0;k<j-i-1;k++)
	  cout<<" ";
      }else
	cout<<s[t[i]-'0'][(j-i-1)%a[t[i]-'0']];
    }
    cout<<endl;
  }
  return 0;
}