
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);

        String s = scanner.next();
        String t = scanner.next();
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < t.length() - 1 ; i++){
            {
                builder.append(t.charAt(i));
            }
        }
        System.out.println(s.equals(builder.toString()) ? "Yes" : "No");

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);

        String s = scanner.next();
        String t = scanner.next();
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < t.length() - 1 ; i++){
            {
                builder.append(t.charAt(i));
            }
        }
        System.out.println(s.equals(builder.toString()) ? "Yes" : "No");

    }
} Main public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);

        String s = scanner.next();
        String t = scanner.next();
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < t.length() - 1 ; i++){
            {
                builder.append(t.charAt(i));
            }
        }
        System.out.println(s.equals(builder.toString()) ? "Yes" : "No");

    } main {
	// write your code here
        Scanner scanner = new Scanner(System.in);

        String s = scanner.next();
        String t = scanner.next();
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < t.length() - 1 ; i++){
            {
                builder.append(t.charAt(i));
            }
        }
        System.out.println(s.equals(builder.toString()) ? "Yes" : "No");

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.next(); s scanner.next() scanner.next scanner String t = scanner.next(); t scanner.next() scanner.next scanner StringBuilder builder = new StringBuilder(); builder new StringBuilder() for(int i = 0; i < t.length() - 1 ; i++){
            {
                builder.append(t.charAt(i));
            }
        } int i = 0; int i = 0; i 0 i < t.length() - 1 i t.length() - 1 t.length() t.length t 1 i++ i++ i {
            {
                builder.append(t.charAt(i));
            }
        } {
            {
                builder.append(t.charAt(i));
            }
        } {
                builder.append(t.charAt(i));
            } builder.append(t.charAt(i)) builder.append builder t.charAt(i) t.charAt t i System.out.println(s.equals(builder.toString()) ? "Yes" : "No") System.out.println System.out System System.out s.equals(builder.toString()) ? "Yes" : "No" s.equals(builder.toString()) s.equals s builder.toString() builder.toString builder "Yes" "No" String[] args args public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);

        String s = scanner.next();
        String t = scanner.next();
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < t.length() - 1 ; i++){
            {
                builder.append(t.charAt(i));
            }
        }
        System.out.println(s.equals(builder.toString()) ? "Yes" : "No");

    }
} public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);

        String s = scanner.next();
        String t = scanner.next();
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < t.length() - 1 ; i++){
            {
                builder.append(t.charAt(i));
            }
        }
        System.out.println(s.equals(builder.toString()) ? "Yes" : "No");

    }
} Main

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);

        String s = scanner.next();
        String t = scanner.next();
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < t.length() - 1 ; i++){
            {
                builder.append(t.charAt(i));
            }
        }
        System.out.println(s.equals(builder.toString()) ? "Yes" : "No");

    }
}
