#include <iostream>
#include <string>
#include <queue>
#include <utility>
using namespace std;

int main() {
    string button[] = {
        " ", "\',.!?", "abcABC", "defDEF", "ghiGHI", "jklJKL", "mnoMNO", "pqrsPQRS", "tuvTUV", "wxyzWXYZ",
    };
    string str;
    while (cin >> str) {
        queue<pair<int, int> > qu;
        int count = 1;
        for (int i = 0, n = str.size(); i < n; i++) {
            if (str[i] != str[i + 1]) {
                qu.push(make_pair(str[i] - '0', count));
                count = 1;
            } else {
                count++;
            }
        }
        string result;
        while (qu.empty() == false) {
            int num = qu.front().first, count = qu.front().second;
            if (num != 0) {
                result += button[num][(count - 1) % (int) button[num].size()];
            } else {
                result.append(count - 1, ' ');
            }
            qu.pop();
        }
        cout << result << endl;
    }
}