class Solution:
def secondHighest(self, s: str) -> int:
first_max = second_max = "-"
for i in s:
if not i.isdigit():
continue
if first_max < i:
second_max = first_max
first_max = i
elif first_max > i and second_max < i:
second_max = i
# print(first_max, second_max)
return int(second_max) if second_max != "-" else -1