Subsequence#3253

Subsequence

1 second
128 megabytes
Very easy

Given two strings and . Check whether string is a subsequence of string .

Input

Two nonempty strings and , containing only letters and digits (|s| \leq 100, |t| \leq 300).

Output

If the string is a subsequence of the string , output two lines: YES (without the quotes), and the minimum sum of indices of characters of string (indexing starts at ) that form the string .

If the string is not a subsequence of the string , output NO (without quotes).

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Example 4

Loading
Loading