// Editor3
import java.util.*;
public class q3{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        for(int i=0;i<str.length();i++){
            char c = str.charAt(i);
            int n = Integer.parseInt(c);
        if(n<2 || n>9){
            System.out.println("Invalid input");
            return;
        }
        if(n==2){
            System.out.println("[A, B, C]");
        }
        else if(n==3){
            System.out.println("[D, E, F]");
        }
        else if(n==4){
            System.out.println("[G, H, I]");
        }
        else if(n==5){
            System.out.println("[J, K, L]");
        }
        else if(n==6){
            System.out.println("[M, N, O]");
        }
        else if(n==7){
            System.out.println("[P, Q, R, S]");
        }
        else if(n==8){
            System.out.println("[T, U, V]");
        }
        else if(n==9){
            System.out.println("[W, X, Y, Z]");
        }
        }
    }
}