import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		}
	}
} Main public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		} {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) String s = scanner.next() s scanner.next() scanner.next scanner t = scanner.next(); t scanner.next() scanner.next scanner System.out.println((t.startsWith(s)) ? "Yes" : "No") System.out.println System.out System System.out (t.startsWith(s)) ? "Yes" : "No" (t.startsWith(s)) t.startsWith t s "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		}
	}
} public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next(), t = scanner.next();
			System.out.println((t.startsWith(s)) ? "Yes" : "No");
		}
	}
}
