#include<iostream>
#include<string>
using namespace std;
int main() {
	string a;
	string b[10] = { "',.!?" ,"abc","def","ghi","jkl","mno",
		"pqrs","tuv","wxyz"," "};
	while (cin >> a) {
		for (int i = 0; i < a.length(); i++) {
			int j = i;
			while (a[i] == a[j]) {
				j++;
			}
			int c = j - i,f=c;
			int d = (int)a[i] - '0';
			if (d == 0) d = 9;
			else d--;
			char e;
			if (d == 9) {
				if (i != 0) {
					f--;
				}
				for (int z = 0; z < f; z++) {
					cout << " ";
				}
			}
			else {
				f--;
				f %= b[d].length();
				e = b[d][f];
				if (c > b[d].length()) e += ('A' - 'a');
				cout << e;
			}
			i = j-1;
		}
		cout << endl;
	}
}