import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		//結果の値
		int ResultTime = 0;

		// 入力値を取得
		Scanner sc = new Scanner(System.in);
		BigDecimal a = new BigDecimal((double) (sc.nextInt()));
		BigDecimal b = new BigDecimal((double) (sc.nextInt()));
		BigDecimal c = new BigDecimal((double) (sc.nextInt()));
		BigDecimal d = new BigDecimal((double) (sc.nextInt()));
		BigDecimal e = new BigDecimal((double) (sc.nextInt()));

		// 入力値の十の位を繰り上げ
		int round_a = (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_b = (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_c = (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_d = (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_e = (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue());

		// 繰り上げ値との差分で一番大きいものを判定
		int[] data = {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()};
		int BigDifference = data[0];
		int MenuNo = 0;
		for (int i = 0; i < data.length; i++) {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		}
		
		//時間の差分が大きいものは最初にもっていく
		if(MenuNo ==0) {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==1) {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==2) {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==3) {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==4) {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		}
		
		//クローズ
		sc.close();
		
	}
} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		
		//結果の値
		int ResultTime = 0;

		// 入力値を取得
		Scanner sc = new Scanner(System.in);
		BigDecimal a = new BigDecimal((double) (sc.nextInt()));
		BigDecimal b = new BigDecimal((double) (sc.nextInt()));
		BigDecimal c = new BigDecimal((double) (sc.nextInt()));
		BigDecimal d = new BigDecimal((double) (sc.nextInt()));
		BigDecimal e = new BigDecimal((double) (sc.nextInt()));

		// 入力値の十の位を繰り上げ
		int round_a = (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_b = (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_c = (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_d = (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_e = (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue());

		// 繰り上げ値との差分で一番大きいものを判定
		int[] data = {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()};
		int BigDifference = data[0];
		int MenuNo = 0;
		for (int i = 0; i < data.length; i++) {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		}
		
		//時間の差分が大きいものは最初にもっていく
		if(MenuNo ==0) {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==1) {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==2) {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==3) {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==4) {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		}
		
		//クローズ
		sc.close();
		
	}
} Main public static void main(String[] args) {
		
		//結果の値
		int ResultTime = 0;

		// 入力値を取得
		Scanner sc = new Scanner(System.in);
		BigDecimal a = new BigDecimal((double) (sc.nextInt()));
		BigDecimal b = new BigDecimal((double) (sc.nextInt()));
		BigDecimal c = new BigDecimal((double) (sc.nextInt()));
		BigDecimal d = new BigDecimal((double) (sc.nextInt()));
		BigDecimal e = new BigDecimal((double) (sc.nextInt()));

		// 入力値の十の位を繰り上げ
		int round_a = (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_b = (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_c = (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_d = (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_e = (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue());

		// 繰り上げ値との差分で一番大きいものを判定
		int[] data = {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()};
		int BigDifference = data[0];
		int MenuNo = 0;
		for (int i = 0; i < data.length; i++) {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		}
		
		//時間の差分が大きいものは最初にもっていく
		if(MenuNo ==0) {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==1) {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==2) {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==3) {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==4) {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		}
		
		//クローズ
		sc.close();
		
	} main {
		
		//結果の値
		int ResultTime = 0;

		// 入力値を取得
		Scanner sc = new Scanner(System.in);
		BigDecimal a = new BigDecimal((double) (sc.nextInt()));
		BigDecimal b = new BigDecimal((double) (sc.nextInt()));
		BigDecimal c = new BigDecimal((double) (sc.nextInt()));
		BigDecimal d = new BigDecimal((double) (sc.nextInt()));
		BigDecimal e = new BigDecimal((double) (sc.nextInt()));

		// 入力値の十の位を繰り上げ
		int round_a = (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_b = (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_c = (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_d = (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_e = (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue());

		// 繰り上げ値との差分で一番大きいものを判定
		int[] data = {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()};
		int BigDifference = data[0];
		int MenuNo = 0;
		for (int i = 0; i < data.length; i++) {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		}
		
		//時間の差分が大きいものは最初にもっていく
		if(MenuNo ==0) {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==1) {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==2) {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==3) {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==4) {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		}
		
		//クローズ
		sc.close();
		
	} int ResultTime = 0; ResultTime 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) BigDecimal a = new BigDecimal((double) (sc.nextInt())); a new BigDecimal((double) (sc.nextInt())) BigDecimal b = new BigDecimal((double) (sc.nextInt())); b new BigDecimal((double) (sc.nextInt())) BigDecimal c = new BigDecimal((double) (sc.nextInt())); c new BigDecimal((double) (sc.nextInt())) BigDecimal d = new BigDecimal((double) (sc.nextInt())); d new BigDecimal((double) (sc.nextInt())) BigDecimal e = new BigDecimal((double) (sc.nextInt())); e new BigDecimal((double) (sc.nextInt())) int round_a = (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue()); round_a (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue()) a.setScale(-1, BigDecimal.ROUND_UP).doubleValue a.setScale(-1, BigDecimal.ROUND_UP) a.setScale a -1 1 BigDecimal.ROUND_UP BigDecimal BigDecimal.ROUND_UP int round_b = (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue()); round_b (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue()) b.setScale(-1, BigDecimal.ROUND_UP).doubleValue b.setScale(-1, BigDecimal.ROUND_UP) b.setScale b -1 1 BigDecimal.ROUND_UP BigDecimal BigDecimal.ROUND_UP int round_c = (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue()); round_c (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue()) c.setScale(-1, BigDecimal.ROUND_UP).doubleValue c.setScale(-1, BigDecimal.ROUND_UP) c.setScale c -1 1 BigDecimal.ROUND_UP BigDecimal BigDecimal.ROUND_UP int round_d = (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue()); round_d (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue()) d.setScale(-1, BigDecimal.ROUND_UP).doubleValue d.setScale(-1, BigDecimal.ROUND_UP) d.setScale d -1 1 BigDecimal.ROUND_UP BigDecimal BigDecimal.ROUND_UP int round_e = (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue()); round_e (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue()) e.setScale(-1, BigDecimal.ROUND_UP).doubleValue e.setScale(-1, BigDecimal.ROUND_UP) e.setScale e -1 1 BigDecimal.ROUND_UP BigDecimal BigDecimal.ROUND_UP int[] data = {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()}; data {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()} round_a - a.intValue() round_a a.intValue() a.intValue a round_b - b.intValue() round_b b.intValue() b.intValue b round_c - c.intValue() round_c c.intValue() c.intValue c round_d - d.intValue() round_d d.intValue() d.intValue d round_e - e.intValue() round_e e.intValue() e.intValue e int BigDifference = data[0]; BigDifference data[0] data 0 int MenuNo = 0; MenuNo 0 for (int i = 0; i < data.length; i++) {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		} int i = 0; int i = 0; i 0 i < data.length i data.length data data.length i++ i++ i {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		} {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		} int value = data[i]; value data[i] data i if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			} value > BigDifference value BigDifference {
				BigDifference = value;
				MenuNo = i;
			} BigDifference = value BigDifference value MenuNo = i MenuNo i if(MenuNo ==0) {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		} MenuNo ==0 MenuNo 0 {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		} ResultTime = a.intValue()+round_b+round_c+round_d+round_e ResultTime a.intValue()+round_b+round_c+round_d+round_e round_d round_c a.intValue()+round_b+round_c+round_d+round_e a.intValue() a.intValue a round_b round_c round_d round_e System.out.println(ResultTime) System.out.println System.out System System.out ResultTime if(MenuNo ==1) {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		} MenuNo ==1 MenuNo 1 {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		} ResultTime = round_a+b.intValue()+round_c+round_d+round_e ResultTime round_a+b.intValue()+round_c+round_d+round_e round_d round_c round_a+b.intValue()+round_c+round_d+round_e round_a b.intValue() b.intValue b round_c round_d round_e System.out.println(ResultTime) System.out.println System.out System System.out ResultTime if(MenuNo ==2) {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		} MenuNo ==2 MenuNo 2 {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		} ResultTime = round_a+round_b+c.intValue()+round_d+round_e ResultTime round_a+round_b+c.intValue()+round_d+round_e round_d c.intValue() round_a+round_b+c.intValue()+round_d+round_e round_a round_b c.intValue() c.intValue c round_d round_e System.out.println(ResultTime) System.out.println System.out System System.out ResultTime if(MenuNo ==3) {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		} MenuNo ==3 MenuNo 3 {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		} ResultTime = round_a+round_b+round_c+d.intValue()+round_e ResultTime round_a+round_b+round_c+d.intValue()+round_e d.intValue() round_c round_a+round_b+round_c+d.intValue()+round_e round_a round_b round_c d.intValue() d.intValue d round_e System.out.println(ResultTime) System.out.println System.out System System.out ResultTime if(MenuNo ==4) {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		} MenuNo ==4 MenuNo 4 {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		} ResultTime = round_a+round_b+round_c+round_d+e.intValue() ResultTime round_a+round_b+round_c+round_d+e.intValue() round_d round_c round_a+round_b+round_c+round_d+e.intValue() round_a round_b round_c round_d e.intValue() e.intValue e System.out.println(ResultTime) System.out.println System.out System System.out ResultTime sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		
		//結果の値
		int ResultTime = 0;

		// 入力値を取得
		Scanner sc = new Scanner(System.in);
		BigDecimal a = new BigDecimal((double) (sc.nextInt()));
		BigDecimal b = new BigDecimal((double) (sc.nextInt()));
		BigDecimal c = new BigDecimal((double) (sc.nextInt()));
		BigDecimal d = new BigDecimal((double) (sc.nextInt()));
		BigDecimal e = new BigDecimal((double) (sc.nextInt()));

		// 入力値の十の位を繰り上げ
		int round_a = (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_b = (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_c = (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_d = (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_e = (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue());

		// 繰り上げ値との差分で一番大きいものを判定
		int[] data = {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()};
		int BigDifference = data[0];
		int MenuNo = 0;
		for (int i = 0; i < data.length; i++) {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		}
		
		//時間の差分が大きいものは最初にもっていく
		if(MenuNo ==0) {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==1) {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==2) {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==3) {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==4) {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		}
		
		//クローズ
		sc.close();
		
	}
} public class Main {
	public static void main(String[] args) {
		
		//結果の値
		int ResultTime = 0;

		// 入力値を取得
		Scanner sc = new Scanner(System.in);
		BigDecimal a = new BigDecimal((double) (sc.nextInt()));
		BigDecimal b = new BigDecimal((double) (sc.nextInt()));
		BigDecimal c = new BigDecimal((double) (sc.nextInt()));
		BigDecimal d = new BigDecimal((double) (sc.nextInt()));
		BigDecimal e = new BigDecimal((double) (sc.nextInt()));

		// 入力値の十の位を繰り上げ
		int round_a = (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_b = (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_c = (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_d = (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_e = (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue());

		// 繰り上げ値との差分で一番大きいものを判定
		int[] data = {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()};
		int BigDifference = data[0];
		int MenuNo = 0;
		for (int i = 0; i < data.length; i++) {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		}
		
		//時間の差分が大きいものは最初にもっていく
		if(MenuNo ==0) {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==1) {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==2) {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==3) {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==4) {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		}
		
		//クローズ
		sc.close();
		
	}
} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		//結果の値
		int ResultTime = 0;

		// 入力値を取得
		Scanner sc = new Scanner(System.in);
		BigDecimal a = new BigDecimal((double) (sc.nextInt()));
		BigDecimal b = new BigDecimal((double) (sc.nextInt()));
		BigDecimal c = new BigDecimal((double) (sc.nextInt()));
		BigDecimal d = new BigDecimal((double) (sc.nextInt()));
		BigDecimal e = new BigDecimal((double) (sc.nextInt()));

		// 入力値の十の位を繰り上げ
		int round_a = (int) (a.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_b = (int) (b.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_c = (int) (c.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_d = (int) (d.setScale(-1, BigDecimal.ROUND_UP).doubleValue());
		int round_e = (int) (e.setScale(-1, BigDecimal.ROUND_UP).doubleValue());

		// 繰り上げ値との差分で一番大きいものを判定
		int[] data = {round_a - a.intValue(), round_b - b.intValue(),
				round_c - c.intValue(), round_d - d.intValue(),
				round_e - e.intValue()};
		int BigDifference = data[0];
		int MenuNo = 0;
		for (int i = 0; i < data.length; i++) {
			int value = data[i];
			if (value > BigDifference) {
				BigDifference = value;
				MenuNo = i;
			}
		}
		
		//時間の差分が大きいものは最初にもっていく
		if(MenuNo ==0) {
			ResultTime = a.intValue()+round_b+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==1) {
			ResultTime = round_a+b.intValue()+round_c+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==2) {
			ResultTime = round_a+round_b+c.intValue()+round_d+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==3) {
			ResultTime = round_a+round_b+round_c+d.intValue()+round_e;
			System.out.println(ResultTime);
		}
		if(MenuNo ==4) {
			ResultTime = round_a+round_b+round_c+round_d+e.intValue();
			System.out.println(ResultTime);
		}
		
		//クローズ
		sc.close();
		
	}
}
