import java.util.Scanner; public class Gomokunarabe { static Scanner scan = new Scanner(System.in); public static void main(String[] args) { int L =scan.nextInt()*100; int M =scan.nextInt()*25; int N =scan.nextInt(); int Total = L+M+N; int Thousand = Total/1000; Total -= Thousand*1000; int Handred = Total/100; Total -=Handred*100; int TowentyFive = Total/25; Total -= TowentyFive*25; int one = Total; System.out.println(Handred+TowentyFive+one); } }