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

Ex Input:
HaIPcFXLhYDp, AdIPcFXtJdRE

Ex Output:
IPcFX


Ex Input:
HSsyZzZLZAAq, MFEZzZLJC

Ex Output:
ZzZL


Ex Input:
heHNCGfPE, VPqHNCGXdgP

Ex Output:

HNCG