# python 3+
x = [input() for i in range(int(input()))]
sorted = []
for element in x:
if element[len(element)-1] == "3": sorted.append(int(element))
print("\n" + str(max(sorted)))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
# python 3+
x = [input() for i in range(int(input()))]
sorted = []
for element in x:
if element[len(element)-1] == "3": sorted.append(int(element))
print("\n" + str(max(sorted)))