Code num = eval(input()) jige, youxiu = 0, 0 for i in range(n): score = int(input()) if score >= 85: youxiu += 1 if score >= 60: jige += 1 print(f"{round(100 * jige / num)}%") print(f"{round(100 * youxiu / num)}%")