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

Input: Consider Input: BdqUloJanutXoOyfLsuA, NRDloJanutXoOQY

Output: loJanutXoO


Input: Consider Input: jAinxmaQUrmu, jqeEnxmaQUrWlrEqW

Output: nxmaQUr


Input: Consider Input: kMQglw, MUQgtJ


Output: Qg