-- Input (1,1) foo -- Output (1,8) ABABCABCCfoo -- Events iABC2.