#include <iostream>
#include <string>
using namespace std;
bool isSubString(string s, string t)
{
if ( t.length() < s.length() )
return false;
for (int i = 0; i <= t.length() - s.length(); i++)
{
int j;
for ( j = 0; j < s.length(); j++)
if (s[j] != t[i+j])
break;
if (j == s.length())
return true;
}
return false;
}
int main()
{
cout << isSubSequence("aaab", "aabaaab");
}