Problem3554--验证子串

3554: 验证子串

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

输入两个字符串,验证其中一个串是否为另一个的子串。

Input

两行,每行一个字符。

Output

若第一个串 s1 是第二个串 s2 的子串,则输出 (s1) is substring of (s2);

否则,若第二个串 s2 是第一个串 s1 的子串,输出  (s2) is substring of (s1);

否则,输出 No substing。

Sample Input Copy

abc
dddncabca

Sample Output Copy

abc is substring of dddncabca

Source/Category