• + 65 comments

    This is my code in Python. Should be easy to understand even for beginners.

    lst = map(int,raw_input().strip().split(' '))
    x = sum(lst)
    print (x-(max(lst))), (x-(min(lst)))