import java.util.Scanner; public class No32 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int hundred = s.nextInt(); int quarter = s.nextInt(); int one = s.nextInt(); int sum = hundred * 100 + quarter * 25 + one; int changedHundred = (sum % 1000) / 100; int changedQuarter = ((sum % 1000) % 100) / 25; int changedOne = ((sum % 1000) % 100) % 25; System.out.println(changedHundred + changedQuarter + changedOne); } }