#76166
# num = 42868
# more = 10.66
# less = 40.14
# c_num = 5835

# num = 5931
# more = 4.68
# less = 16.04
# c_num = 1823

# 39806
num = -111493
more = 74.22
less = 39.66
c_num = 2503

# num = -6986
# more = 37.12
# less = 19.84
# c_num = 903

rst = (num + more * c_num)/(more + less)

print rst
