import java.util.*; public class no32 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int hundred = sc.nextInt(); int tw5 = sc.nextInt(); int one = sc.nextInt(); int cnt = 0; int keep = 0; int sum = 0; if (one != 0) { cnt = one / 25; one = one % 25; } tw5 += cnt; cnt = 0; if(tw5 != 0){ cnt = tw5 / 25; tw5 = tw5 % 25; } hundred += cnt; if(hundred != 0){ cnt = hundred / 10; hundred = hundred % 10; } sum = hundred + tw5 + one; System.out.println(sum); } }