package main import "fmt" func main() { var l, m, n int fmt.Scanf("%v", &l) fmt.Scanf("%v", &m) fmt.Scanf("%v", &n) sum := l*100 + m*25 + n r := map[int]int{1000: 0, 100: 0, 25: 0, 1: 0} for k := range r { r[k] = sum / k sum = sum - k*r[k] if sum < 0 { break } } fmt.Printf("%d\n", r[100]+r[25]+r[1]) }