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