print "MATCH" if join("",sort(@arr1)) eq join("",sort(@arr3))