#include<bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a; while (cin>>b){ if ((int)(a.find(b)) == -1){ cout<<"false"; return 0; } } cout<<"true"; return 0; }