#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <complex>
#include <cstdlib>
using namespace std;

#define REP(i,n) for(int i=0;i<(int)n;++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define ALL(c) (c).begin(), (c).end()

int main() {
  string bu[10] = {"","',.!?,.!?","abcABC","defDEF","ghiGHI","jklJKL","mnoMNO","pqrsPQRS","tuvTUV","wxyzWXYZ"};
  string s;
  while(cin >> s) {
    int mae = 0;                // OÌüÍ
    int kai = 0;                // OÌüÍÜÅÅ»ÌlðA±ÅüÍ³ê½ñB
    FOR(i,s) {
      int n = *i-'0';
      if (mae == 0) {
        if (n == 0)
          cout << " ";
        else {
          mae = n;
          kai = 0;
        }
      } else {
        if (n != mae) {
          cout << bu[mae][kai%bu[mae].length()];
          mae = n;
          kai = 0;
        } else
          kai++;
      }
    }
    cout << bu[mae][kai%bu[mae].length()];
    cout << endl;
  }
}