def is_Sub_Array(A,B,n,m):
     
    i = 0; j = 0; 
    while (i < n and j < m):  
        if (A[i] == B[j]): 
            i += 1; 
            j += 1; 
            if (j == m): 
                return True;  
        else: 
            i = i - j + 1; 
            j = 0;       
    return False; 
def is_Sub_Array(A, B, n, m):
    i = 0
VAR_0 = 0
while i < n and VAR_0 < m:
    if A[i] == B[VAR_0]:
        i += 1
        VAR_0 += 1
       
        if VAR_0 == m:
            return True
    else:
        i = i - VAR_0 + 1
        VAR_0 = 0
return False