Types: l: int, d: int, str_1: str, str_2: str, str_3: str
Ranges: 1 ≤ l ≤ 100,000, 0 ≤ d ≤ 5,000
Addtl Info: Strings consist of only lower and upper case alphabets. Input ends with a line containing two zeros, which should not be processed.