import java.util.Scanner; public class Chokin{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int coin1 = sc.nextInt(); int coin25 = sc.nextInt(); int coin100 = sc.nextInt(); coin25 += coin1/25; coin1 = coin1%25; coin100 += coin25/4; coin25 = coin25%4; coin100 = coin100%10; System.out.println(coin1+coin25+coin100); } }