/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int arr[] = {1,2,4,1};
		int arr2[] = {2,3};
		
		int n = arr.length;
		int n2 = arr2.length;
		
		Set<Integer> st = new HashSet<>();
		for(int i =0;i<n;i++){
			st.add(arr[i]);
		}
		
		for(int j=0;j<n2;j++){
			if(!st.contains(arr2[j])){
				System.out.println("Array 2 is not a subset of array 1");
				return ;
			}
		}
		System.out.println("Array2 is a subset of array 1");
	}
}