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

Ex Input:
EOwHDdhJcP, DrIuDdhJYw

Ex Output:
DdhJ


Ex Input:
pIkAtJHVcvzzZVz, btWerNSHVcvzzZTz

Ex Output:
HVcvzzZ


Ex Input:
BdwHIHzD, BxHIHqrP

Ex Output:

HIH