import java.util.Scanner; public class yukicoder_32 { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int l = stdIn.nextInt(); int m = stdIn.nextInt(); int n = stdIn.nextInt(); int sum = (l * 100) + (m * 25) + (n * 1); int yen1000 = sum / 1000; int yen100 = (sum % 1000) / 100; int yen25 = ((sum % 1000) % 100) / 25; int yen1 = (((sum % 1000) % 100) % 25); int coin = yen100 + yen25 + yen1; System.out.println(coin); } }