In this task, you are given two strings A, B. Find the longest common substring in the strings A and B.

Input: Consider Input: UTdardKNThdYrGKMqZPeg, mvrThdYrGKMlcCxBtak

Output: ThdYrGKM


Input: Consider Input: oGaGjsaKsUpLQAg, iDGjsaKsUoYGuta

Output: GjsaKsU


Input: Consider Input: MyDbQRj, SQWDbQHOZ


Output: DbQ