fork download
  1. while True:
  2. try:
  3. r=int(input())
  4. m1=[]
  5. m2=[]
  6. l1=input().split()
  7. l2=input().split()
  8.  
  9. for i in range(r):
  10. m1.append(l1[i*r:i*r+r])
  11. m2.append(l2[i*r:i*r+r])
  12.  
  13.  
  14. print(m1,m2)
  15.  
  16. except:
  17. break
  18.  
  19.  
Success #stdin #stdout 0.04s 9756KB
stdin
  2
  0 0 1 1
  
 
stdout
[['0', '0'], ['1', '1']] [[], []]