
#list of numbers
list1 = [12, -7, 5, 64, -14]
list2 = [12, 14, -95, 3]

#iterating each number in list1
for num in list1:
  
    #checking condition 
     if num>=0:
      print(num, end = " ")

print("")

#iterating each number in list1
for num in list2:
  
  #checking condition
   if num>0:
    print(num, end = " ")