
# excercise 5   nested if

# draw a decision tree first, comparing a pair 

#             1:2
#           /      \
#      1>2 /        \
#         1:3        2:3
#         / \        / \
#    1>3 /   \   2>3/   \
#        1   3     2     3

# use input().strip().split()  to get three numbers
#   the result is a list

infile = open("input5.txt","r")

for line in infile:
# inp = input().strip().split()

    inp = line.strip().split()
    
# convert them to integers

    x = int(inp[0])
    y = int(inp[1])
    z = int(inp[2])

# start decision tree

    if x > y :
        if x > z:
            print(x)
        else:
            print(z)
    else:
        if y > z:
            print(y)
        else:
            print(z)

infile.close()

# finally we wrap all up in the loop of getting input from a file

