@@ -0,0 +1,631 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class DesignerPDFViewer %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int n = 26;%0A        int h%5B%5D = new int%5Bn%5D;%0A        for(int h_i=0; h_i %3C n; h_i++)%7B%0A            h%5Bh_i%5D = in.nextInt();%0A        %7D%0A        int height=0;%0A        String word = in.next();%0A        for (int i=0;i%3Cword.length();i++) %7B%0A        %09int charToInt=word.charAt(i);%0A        %09if (h%5BcharToInt-97%5D%3Eheight) height=h%5BcharToInt-97%5D;%0A        %7D%0A        System.out.println(height*word.length());%0A    %7D%0A%7D%0A

Create DesignerPDFViewer.java