The first line is the code table for the substitution cipher, which contains 26 letters representing the encrypted letter for each letter in lexicographical order.
The second line is \(S \ \ (1\leq |s| \leq 5*10^5)\).
b c d e f g h i j k l m n o p q r s t u v w x y z a
bcdeabc
4