#C8975. Phone Keypad Conversion
Phone Keypad Conversion
Phone Keypad Conversion
Given a string consisting of uppercase English letters, your task is to convert the string into the corresponding phone keypad numbers. The mapping is defined as follows:
\( A, B, C \rightarrow 2 \), \( D, E, F \rightarrow 3 \), \( G, H, I \rightarrow 4 \), \( J, K, L \rightarrow 5 \), \( M, N, O \rightarrow 6 \), \( P, Q, R, S \rightarrow 7 \), \( T, U, V \rightarrow 8 \), \( W, X, Y, Z \rightarrow 9 \).
You need to read the input string from standard input and output the converted sequence to standard output.
inputFormat
The input is given via standard input as a single line containing a string composed of uppercase letters (A-Z). The string may be empty.
outputFormat
Output the corresponding numeric keypad sequence as a single string to standard output.## sample
HELLO
43556