‪#include<stdio.h>‬
‪int main()‬
‪{‬
‪char S,T;‬
‪scanf("%s%s",&S,&T);‬
‪for(int i=0;S[i]!=EOF;i++){‬
‪if(S[i]!=T[i]){‬
‪printf("No");‬
‪return 0;‬
‪}‬
‪}‬
‪if(T[i+1]!=EOF&&T[i+2]==EOF){‬
‪printf("Yes");‬
‪}else{‬
‪peintf("No");‬
‪}‬
‪return 0;‬
‪}‬