
# from random import randint
# ship=[]
# row=1
# cols=1
# # row=randint(1,8) #1
# # cols=randint(1,8) #1
# count=0
# direction=randint(0,1)
# if(direction==1):
#     c1=[]
#     for i in range(row-1,row+2,1):
#         c1.append(i)
#         count=count+1
#     ship.append(c1)
# else:
#     count=0
#     c1=[]
#     for i in range(cols-1,cols+2,1):
#         c1.append(i)
#         count=count+1
#     ship.append(c1)
# print(ship,count)
