#!/bin/bash
read name
read name2
namelen=${#name}
name2len=$((${#name2} - 1))
if [ $namelen -eq $name2len ]; then
	if [ $name = ${name2:0:namelen} ]; then
    	echo "Yes"
    else
    	echo "No"
    fi
else
	echo "No"
fi