#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
string data[]={
  "",
  "',.!?",
  "abcABC",
  "defDEF",
  "ghiGHI",
  "jklJKL",
  "mnoMNO",
  "pqrsPQRS",
  "tuvTUV",
  "wxyzWXYZ"
};
int main()
{
  string s;
  for(;cin>>s;)
    {
      char out=-1;
      int old=-1;
      int cnt=-1;
      bool flag=true;
      for(int i=0;i<s.size();i++)
	{
	  int tmp=s[i]-'0';
	  if(tmp==0)
	    {
	      if(out==-1)
		{
		  out=' ';
		  continue;
		}
	      cout<<out;
	      out=' ';
	      old=-1;
	      cnt=-1;
	    }
	  else
	    {
	      if(old!=-1&&old!=tmp)
		{
		  cout<<out;
		  cnt=-1;
		}
	      cnt++;
	      if(cnt>=data[tmp].size())
		cnt=0;
	      out=data[tmp][cnt];
	      old=tmp;
	    }	
	}

      if(out!=-1)
	{
	  cout<<out;
	}
      cout<<endl;
    }

}