#include <string>
#include <vector>
using namespace std;
int solution(string skill, vector<string> skill_trees) {
int answer = 0;
string newline = "";
string tt = "";
int check = 0;
for(int i=0; i< skill_trees.size(); i++){
tt = skill_trees[i];
newline ="";
check = 0;
for(int j =0; j < tt.length(); j++){
for(int l =0; l < skill.length(); l++){
if(skill[l]==tt[j])
newline+=tt[j];
}
}
for(int k =0 ;k < newline.length(); k++){
cout << newline[k];
if(newline[k] != skill[k]){
check = -1;
break;
}
}
if(check!=-1)
answer+=1;
}
return answer;
}