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

Input: Consider Input: apGMPThLTCw, LvMPThYW

Output: MPTh


Input: Consider Input: JjEQVKijeyEQ, dwSVKijeywCTvb

Output: VKijey


Input: Consider Input: tYCqemAaCcfxy, MGFqemAaZlJQS


Output: qemAa