A human chromosome is made of four bases, written with the four letters A, C, G, and T. Junseo decided to build a Pinocchio that will serve his shifts for him.
Junseo has a base sequence S of length L. Pulling one A, one C, one G, and one T out of that sequence and synthesizing them builds one Pinocchio. Two bases with the same letter behave a little differently depending on where they sit in the sequence. Two Pinocchios are therefore the same only when all four positions they came from are the same, and they differ as soon as one position differs. Find how many kinds of Pinocchio Junseo can build.