public static void main (String[] args) throws Exception
    {
        List<String> list = new ArrayList<String>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        SecretDecoder decoder = new SecretDecoder();	

        String line = br.readLine().trim();
        System.out.println("Fist line of input is: "+line);
        if (line.equals("//dict")) {
            while (!line.equals("//secret")) {
                line = br.readLine().trim();
                list.add(line);
            }
            System.out.println("Read the dictionary part");
            decoder.intiliazeDict(list.toArray());
            line = br.readLine();
            while (line != null) {
                decoder.decode(line);
                decoder.displayDecodedMsg(line);
                System.out.println();
                line = br.readLine();
            }		
        }
    }