LearnPy Hub
← Arena
IntermediateRating 1300

Phone Keypad Words

On a phone keypad 2=abc, 3=def, 4=ghi, 5=jkl, 6=mno, 7=pqrs, 8=tuv, 9=wxyz. Print every letter string the digits can spell, in alphabetical order, one per line.

Input

A string of digits 2–9 (length 1–6).

Output

The strings.

Sample 1

Input
23
Output
ad
ae
af
bd
be
bf
cd
ce
cf

Sample 2

Input
2
Output
a
b
c
solution.py
Output appears here
Phone Keypad Words · Python Arena problem · LearnPy Hub