import java.util.*;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
String line2 = sc.nextLine();
char[] chars1 = line1.toCharArray();
HashSet<Character> set1 = new HashSet<>();
for (char c : chars1) {
set1.add(c);
}
char[] chars2 = line2.toCharArray();
HashSet<Character> set2 = new HashSet<>();
for (char c : chars2) {
set2.add(c);
}
if (set2.containsAll(set1)) {
System.out.println(true);
} else {
System.out.println(false);
}
}
}