def main():
    a = float(raw_input())
    b = float(raw_input())
    c = float(raw_input())
    average = (a * 2 + b * 3 + c * 5) / 10
    print "MEDIA = {:.1f}".format(average)


if __name__ == '__main__':
    main()
