Buggy python submission (verdict: Runtime Error):
n = "#."
m = ".#"

while 1:
   H, W = map(int, raw_input().split())

   if H == 0 and W == 0:
      break
   if W%2 ==0:
      for i in range(0, H, 2):
         M[i] = n*(w/2)
      for i in range(1, H, 2):
         M[i] = m*(W/2)
   elif W%2 == 1:
      for i in range(0, H, 2):
         M[i] = n*(w/2)+n(0)
      for i in range(1, H, 2):
         M[i] = m*(W/2)+m(0)

   for i in range(H):
      print M[i]

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
n = "#."
m = ".#"
 
while 1:
   H, W = map(int, raw_input().split())
 
   if H == 0 and W == 0:
      break
   if W%2 ==0:
      for i in range(0, H, 2):
         M[i] = n*(w/2)
      for i in range(1, H, 2):
         M[i] = m*(W/2)
   elif W%2 == 1:
      for i in range(0, H, 2):
         M[i] = n*(w/2)+n(0)
      for i in range(1, H, 2):
         M[i] = m*(W/2)+m(0)
 
   for i in range(H):
      print "%c" %(M[i])
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
  
   if H == 0 and W == 0:
      break
   if W%2 ==0:
      for i in range(0, H, 2):
         M[i] = "#."*(w/2)
      for i in range(1, H, 2):
         M[i] = ".#"*(W/2)
   elif W%2 == 1:
      for i in range(0, H, 2):
         M[i] = "#."*(w/2)+"#"
      for i in range(1, H, 2):
         M[i] = ".#"*(W/2)+"."
  
   for i in range(H):
      print "%c" %(M[i])
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
   
   if H == 0 and W == 0:
      break
   if W%2 ==0:
      for i in range(0, H, 2):
         M[i] = "#."*(w/2)
      for i in range(1, H, 2):
         M[i] = ".#"*(W/2)
   elif W%2 == 1:
      for i in range(0, H, 2):
         M[i] = "#."*(w/2)+"#"
      for i in range(1, H, 2):
         M[i] = ".#"*(W/2)+"."
   
   for i in range(H):
      print "%c" %(str(M[i]))
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
    
   if H == 0 and W == 0:
      break
   for i in range(H):
      if H%2 ==0:
         if W%2 == 1:
            print ".#"*(w/2)+"."
         elif W%2 == 0:
            print ".#"*(W/2)
   elif H%2 == 1:
         if W%2 == 1:
            print "#."*(w/2)+"#"
         elif W%2 == 0:
            print "#."*(W/2)
   print""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
     
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 ==1:
         if W%2 == 1:
            print ".#"*(w/2)+"."
         elif W%2 == 0:
            print ".#"*(W/2)
   elif i%2 == 0:
         if W%2 == 1:
            print "#."*(w/2)+"#"
         elif W%2 == 0:
            print "#."*(W/2)
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
      
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 ==1:
         if W%2 == 1:
            print ".#"*(w/2)+"."
         elif W%2 == 0:
            print ".#"*(W/2)
      elif i%2 == 0:
         if W%2 == 1:
            print "#."*(w/2)+"#"
         elif W%2 == 0:
            print "#."*(W/2)
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
       
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 1:
            print "#."*(w/2)+"#"
         elif W%2 == 0:
            print "#."*(W/2)
      elif i%2 == 1:
         if W%2 == 1:
            print ".#"*(w/2)+"."
         elif W%2 == 0:
            print ".#"*(W/2)

   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
        
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 1:
            print "#."*(w/2)+"#"
         elif W%2 == 0:
            print "#."*(W/2)
      elif i%2 == 1:
         if W%2 == 1:
            print ".#"*(w/2)+"."
         elif W%2 == 0:
            print ".#"*(W/2)
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
         
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         wlif W%2 == 1:
            print "#."*(w/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(w/2)+"."
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
          
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(w/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(w/2)+"."
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         else:
            print "#."*(w/2)+"#"
      else:
         if W%2 == 0:
            print ".#"*(W/2)
         else:
            print ".#"*(w/2)+"."
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(int, raw_input().split())
            
   if H == 0 and W == 0:
      break
   for i in range(0, H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         else:
            print "#."*(w/2)+"#"
      else:
         if W%2 == 0:
            print ".#"*(W/2)
         else:
            print ".#"*(w/2)+"."
   print ""

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())
           
   if H == 0 and W == 0:
      break
   for i in range(H):
      if i%2 == 0:
         if W%2 == 0:
            print "#."*(W/2)
         elif W%2 == 1:
            print "#."*(W/2)+"#"
      elif i%2 == 1:
         if W%2 == 0:
            print ".#"*(W/2)
         elif W%2 == 1:
            print ".#"*(W/2)+"."
   print ""