#B2118. Substring Verification
Substring Verification
Substring Verification
Given two strings, determine whether one string is a substring of the other. A string A is considered a substring of string B if A appears as a contiguous sequence of characters in B.
Note: The comparison is case-sensitive. Formally, let \(s_1\) and \(s_2\) be two strings, the condition to check is whether \(s_1 \subseteq s_2\) or \(s_2 \subseteq s_1\).
inputFormat
The input consists of two lines. Each line contains a non-empty string.
outputFormat
Output Yes
if one string is a substring of the other. Otherwise, output No
.
sample
hello
ell
Yes