def f(l):
    l1 = l
    l1.remove(max(l))
    return max(l1)
    
l = [1, 2, 3, 3]
print f(l)