import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; import java.util.List; import java.util.Arrays; import java.util.ArrayList; import java.util.Deque; import java.util.ArrayDeque; import java.util.Collections; public class Main { public static void main(String[] args) { FS reader = new FS(); // write reader int L = reader.nextInt(); int M = reader.nextInt(); int N = reader.nextInt(); int net = L*100+M*25+N*1; int n = net%25; net -= n; int m = net%100; net -= m; m /= 25; int l = net%1000; l /= 100; System.out.println(l+m+n); } public static void output2DArray(boolean[][] a, int r) { for (int x=0; x