# -*- coding: utf-8 -*-
"""
Created on Mon Jan 15 20:38:42 2018

@author: atul
"""

#search in a sorted matrix

mat =[[1,2,3,4,5],
      [11,12,13,14,18],
      [21,22,23,24,25]]


rows=3
columns=5

for item in mat:
    print (item)


def findExpectedRow(item,mat):
    count = 0
    while count < 3:
        

def searchItem(item):
    row = findExpectedRow(item,mat)
            