import java.util.Scanner; class Wandbox { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int m = sc.nextInt(); int n = sc.nextInt(); int cnt = 0; int sum = l * 100 + m * 25 + n; sum = sum % 1000; cnt = cnt + sum / 100; sum = sum % 100; cnt = cnt + sum / 25; sum = sum % 25; cnt = cnt + sum; System.out.println(cnt); } }