import sys
d=75
a,b,c=sys.stdin.read().split()
if a or b or c == 3:
d+=10
if a or b or c == 6:
d-=40
if a or b or c == 8:
d-=10
if a or b or c == 2:
d-=35
if a or b or c == 1:
d+=25
if a or b or c == 4:
d-=25
if a or b or c == 5:
d+=15
if a or b or c == 7:
d-=5
print(d)