l, m, n = STDIN.readlines.map(&:to_i) _m, n = n.divmod(25) _l, m = (m + _m).divmod(4) t, l = (l + _l).divmod(10) p n + m + l