####python script that finds 2 by 2 matrix from 8 by 8 matrix

import sys 

def findMatrix(lst,m):
	lst = [int(i) for i in lst] # converting lst of str to int
	r = 0 
	l_c = 0
	while(r != 7):
		c = 0
		while(c != 7):
			if lst[l_c] is m[r][c] and lst[l_c + 1] is m[r][c+1] and lst[l_c + 2] is m[r+1][c] and lst[l_c + 3] is m[r+1][c+1]:
				print "Matrix found at (%d,%d)" %(r,c)
				return; 
			c = c + 1
		r = r + 1
	print "Matrix not found"
	return;
	

if __name__ == "__main__":
	m = [[1,2,3,4,5,6,7,8],
	 [9,10,11,12,13,14,15,16],
	 [17,18,19,20,21,22,23,24],
	 [25,26,17,28,29,30,31,32],
	 [33,34,35,36,37,38,39,40],
	 [41,42,43,44,45,46,47,48],
	 [49,50,51,52,53,54,55,56],
	 [57,58,59,60,61,62,63,64]]
	
	if len(sys.argv[1:]) == 4 :	
		findMatrix(sys.argv[1:],m)
	else :
		print "not a 2x2 matrix"

#print m

