//#include "stdafx.h"//If the vc++6.0, with this line.
#include
#include
using namespace std;
int main(int argc,char *argv[]){
string s1,s2;
cout << "Input 2 strings...\n";
cin >> s1 >> s2;
cout << (s1.find(s2)!=string::npos ? "Yes" : "No") << endl;
return 0;
}