foolist = ["green", "red", "blue"]
barlist = ["car", "bike", "house"]

for x in foolist:
    for y in barlist:
        if x == "red":
            print(x.upper()),
            print(y)
        else:
            print(x.title()),
            print(y)

