import java.util.*;
public class Main {
public static void Keypad(String s1, String s2) {
// base case
if (s1.length() == 0) {
return;
}
// char cc1 = s1.charAt(0);
for (int i = 0; i < s2.length(); i++) {
System.out.println(s1.substring(0, 1) + s2.charAt(i));
}
// System.out.println();
Keypad(s1.substring(1), s2);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
String table[] = { " ", ".+@$", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" };
Scanner in = new Scanner(System.in);
String x = in.next();
int one = x.charAt(0)-48;
int two = x.charAt(1)-48;
Keypad(table[one], table[two]);
}
}
Iām facing wrong ans but according to me the code is correct. Please help me out.