length = int(input()) num_list = list(map(int, input().split())) five_list = [] three_list = [] not_five_or_three_list = [] for i in num_list: if i % 5 == 0: five_list.append(i) elif i % 3 == 0: three_list.append(i) else: not_five_or_three_list.append(i) # print(...