SP13941 AMSCO1 - The AMSCO cipher

Description

Due to A.M.SCOtt in the 19th century, it's an incomplete columnar transposition cipher with alternating single letters and digraphs. The first entry must be a digraph. In both even and odd periods the first column and the first row always alternate: **4** **1** **3** **2** **5** **IN** **C** **OM** **P** **LE** **T** **EC** **O** **LU** **M** **NA** **R** **WI** **T** **HA** **L** **TE** **R** **NA** **T** **IN** **G** **SI** **N** **GL** **E** **LE** **T** **TE** **R** **SA** **N** **DD** **I** **GR** **A** **PH** **S** ### Input N lines (N

Input Format

N/A

Output Format

N/A