a, b = map(str, input().split()) print(max(int(a[1]), int(b[1])))
num = [123, 567] def nums(num_list): a = [] for i in num_list: a.append(int(str(i)[1])) return max(a) print(nums(num))
x,y=input('99< два числа <999 =').split() print(max(x[1],y[1]))