Longest Common Substring

easy
1. You are given two strings S1 and S2.
2. You are required to print the length of the longest common substring of two strings.

Input Format

2 strings S1 and S2

Output Format

A number representing the length of longest common substring of two strings.

Constraints

1 < length of strings S1 and S2 <= 200

Example

Input
abcdgh
acdghr
Output
4
Previous
Regular Expression Matching
Next
Minimum Ascii Delete Sum For Two Strings

Related Questions