Buggy python submission (verdict: Runtime Error):
while True :
    a,b=input().split()
    h =int(a)
    w=int(b)
    if a==0 and b==0:
        break
    for i in range(h):
        if i %2==0:
            print(".#"*(w/2))
        elif w ==1 :
            print(#.")
        else:
            print("#."*(w-1)/2))
    primt(" ")

Fixed submission:
while True:
    a,b=input().split()
    h = int(a)
    w=int(b)
    if h==0 and w==0:
        break
    odd = "#."*300
    even= ".#"*300
    for i in range(h):
        if (i%2)==0:
            print(odd[:w])
        else:
            print(even[:w])
    print("")

Buggy python submission (verdict: Runtime Error):
while True :
    a,b=input().split()
    h =int(a)
    w=int(b)
    if a==0 and b==0:
        break
    for i in range(h):
        if i %2==0:
            print(".#"*(w/2))
        elif w ==1 :
            print(#.")
        else:
            print("#."*(w-1)/2))
    print("")

Fixed submission:
while True:
    a,b=input().split()
    h = int(a)
    w=int(b)
    if h==0 and w==0:
        break
    odd = "#."*300
    even= ".#"*300
    for i in range(h):
        if (i%2)==0:
            print(odd[:w])
        else:
            print(even[:w])
    print("")

Buggy python submission (verdict: Runtime Error):
while True :
    a,b=input().split()
    h =int(a)
    w=int(b)
    if a==0 and b==0:
        break
    for i in range(h):
        if i %2==0:
            print(".#"*(w/2))
            if w==1:
                print(".")
        elif h ==1 :
            print("#")
        else:
            print("#."*(w-1)/2))
    print("")

Fixed submission:
while True:
    a,b=input().split()
    h = int(a)
    w=int(b)
    if h==0 and w==0:
        break
    odd = "#."*300
    even= ".#"*300
    for i in range(h):
        if (i%2)==0:
            print(odd[:w])
        else:
            print(even[:w])
    print("")

Buggy python submission (verdict: Runtime Error):
while True :
    a,b=input().split()
    h =int(a)
    w=int(b)
    if a==0 and b==0:
        break
    for i in range(h):
        if i %2==0:
            print(".#"*(w/2))
            if w==1:
                print(".")
        elif h ==1 :
            print("#")
        else:
            print("#."*(w-1)/2))
            if w==1:
                print("#")

    print("")

Fixed submission:
while True:
    a,b=input().split()
    h = int(a)
    w=int(b)
    if h==0 and w==0:
        break
    odd = "#."*300
    even= ".#"*300
    for i in range(h):
        if (i%2)==0:
            print(odd[:w])
        else:
            print(even[:w])
    print("")

Buggy python submission (verdict: Runtime Error):
while True :
    a,b=input().split()
    h =int(a)
    w=int(b)
    if a==0 and b==0:
        break
    for i in range(h):
        if i %2==0:
            print(".#"*(w/2))
            if w==1:
                print(".")
        elif h ==1 :
            print("#")
        else:
            print("#."*((w+1)/2)-1))
            if w==1:
                print("#")

    print("")

Fixed submission:
while True:
    a,b=input().split()
    h = int(a)
    w=int(b)
    if h==0 and w==0:
        break
    odd = "#."*300
    even= ".#"*300
    for i in range(h):
        if (i%2)==0:
            print(odd[:w])
        else:
            print(even[:w])
    print("")

Buggy python submission (verdict: Runtime Error):
while True :
    a,b=input().split()
    h =int(a)
    w=int(b)
    if a==0 and b==0:
        break
    for i in range(h):
        if i %2==0:
            print(".#"*(w/2))
            if w==1:
                print(".")
        elif h ==1 :
            print("#")
        else:
            print("#."*((w+1)/2)-1))
            if w==1:
                print("#")

    print("")

Fixed submission:
while True:
    a,b=input().split()
    h = int(a)
    w=int(b)
    if h==0 and w==0:
        break
    odd = "#."*300
    even= ".#"*300
    for i in range(h):
        if (i%2)==0:
            print(odd[:w])
        else:
            print(even[:w])
    print("")

Buggy python submission (verdict: Runtime Error):
while True :
    a,b=input().split()
    h =int(a)
    w=int(b)
    if a==0 and b==0:
        break
    for i in range(h):
        if i %2==0:
            print(".#"*(w/2))
            if w==1:
                print(".")
        elif w ==1 :
            print("#")
        else:
            print("#."*((w+1)/2)-1))
            if w==1:
                print("#")

    print("")

Fixed submission:
while True:
    a,b=input().split()
    h = int(a)
    w=int(b)
    if h==0 and w==0:
        break
    odd = "#."*300
    even= ".#"*300
    for i in range(h):
        if (i%2)==0:
            print(odd[:w])
        else:
            print(even[:w])
    print("")