import java.util.Scanner object no32{ def main(args:Array[String]):Unit={ val scan:Scanner = new Scanner(System.in) var l = scan.nextInt var m = scan.nextInt var n = scan.nextInt m += n/25 n %= 25 l += m/4 m %= 4 l %= 10 println(n+m+l) } }