#!/usr/bin/python3
#SOOOOOS
#dinontai listes a,b me 20 psudotyxaies akairees times sto diasthma 10-100 na ypologistei nea lsita c pou tha perilambanei gia kathe thesh thn timh
# tou antistoixou stoixeiou ths listas a an stoixeip(a)>stoixeio(b) alliws tou b me morfh synarthsewn
#px A=[3,4,2] kai B=[2,6,3] kai tha exoume C=[3,6,3]
import random
import math

n=None

def gen_lst():
	return [int(random.uniform(10,100)) for _ in range(n)]

def print_lst(ml):
	print(ml,sep=",")

def merge_lst2(ma,mb):
	mc=[]
	for i, (ela,elb) in enumerate(zip(ma,mb)):
		if ela>elb:
			mc.append(ela)
		else:
			mc.append(i)
	return mc

def merge_lst3(ma,mb):
	mc=[ela if ela>elb else i for i, (ela,elb) in enumerate (zip(ma,mb))]
	return mc
def merge_lst(ma,mb):
	mc=[]
	for ela, elb in zip(ma,mb): #to zip dhmiourgei px [(3,2),(4,6),(2,3)]
		if ela>elb:
			mc.append(ela)
		else:
			mc.append(elb)
	return mc
	#for i in range(n):
		#if ma[i]>mb[i]:
		#	mc.append(ma[i])
		#else:
		#	mc.append(mb[i])

def main():
	global n
	try:
		n=int(input("Δώσε n:"))
	except Exception as e:
		print(str(e))
		exit(1)
	a=gen_lst()
	b=gen_lst()
	c=merge_lst(a,b)
	print_lst(a)
	print_lst(b)
	print_lst(c)
	print(list(zip(a,b)))

if __name__=="__main__":
	main()
