input: "a b c d e f g" output: "cd"