import strutils var l = stdin.readLine.parseInt m = stdin.readLine.parseInt n = stdin.readLine.parseInt money = 100 * l + 25 * m + n res = 0 money = money mod 1000 res = money div 100 money = money mod 100 res += money div 25 money = money mod 25 res += money echo res