Sarah's Sandwich Shop

시간 제한1초메모리 제한2048 MB

요약
주어진 각 단어의 모든 글자를 키패드의 같은 줄에 있는 숫자로 바꿔 전화번호를 만든다.
난이도

쉬움10점 중 1점

유형
문자열, 구현
정답자
아직 제출이 없습니다

문제

Sarah's Sandwiches is the hottest new restaurant Golden, and every student at Mines can't wait to try it. Like any reputable sandwich shop, they want a phone number that cleverly spells out a word or phrase so that customers can more easily recall their phone number.

The owners have a lot of ideas for what their phone number might spell out, but they're too busy making sandwiches to figure out the corresponding phone numbers which would be the most commercially viable.

You've been tasked to help them out, and create a program which converts a word to a telephone number using the standard keypad:

22A B C
33D E F
44G H I
55J K L
66M N O
77P Q R S
88T U V
99W X Y Z

To perform the conversion, every character in the given word is mapped to the single corresponding digit in the same row of the table above. For example, the word "MINES" would be mapped to the phone number "6463764637" because the letter "M" maps to the digit "66", the letter "I" maps to the digit "44", the letter "N" maps to the digit "66", and so on.

입력

The first line of input will be an integer 1≤N≤1,0001 \leq N \leq 1\\,000 indicating the number of different words that the owners' of Sarah's Sandwiches are considering to use for their phone number. Each of the following NN lines contains a word of length 1≤M≤451 \le M \leq 45, that consists only of upper and lowercase letters in the English alphabet (A-Z, a-z).

출력

The output should contain NN lines with the ithi^{th} line containing the phone number conversion of the ithi^{th} word of the input.

Note that outputted phone numbers may not match the standard phone number length.

예제2

  1. 예제 1

    입력
    4
    colorado
    school
    of
    mines
    
    예상 출력
    26567236
    724665
    63
    64637
    
  2. 예제 2

    입력
    2
    GO
    OREDIGGERS
    
    예상 출력
    46
    6733444377