#include<iostream>
#include<cstdio>
#include<vector>
using namespace std;

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


int main() {
  for( string line; cin >> line; ) {
    line += '$';
    vector<int> v;

    for(int i = 0, len = 1; i + 1 < (int)line.size(); i++) {
      if( line[i] != line[i + 1] ) {
        v.push_back( line[i] - '0' );
        v.push_back(len);
        len = 1;
      } else {
        len++;
      }
    }

    for(int i = 0; i < v.size(); i += 2) {
//       cout << v[i] << " " << v[i + 1] << endl;
      if( v[i] == 0 )
        for(int j = 0; j < v[i + 1] - 1; j++) cout << " ";
      else
        cout << str[v[i]][v[i +1] - 1];
    }
    cout << endl;

  }

}