import std.stdio; import std.string, std.conv, std.array, std.algorithm; void main(){ int L = readln.chomp.to!int; int M = readln.chomp.to!int; int N = readln.chomp.to!int; int tmp = N; N %= 25; M += (tmp/25); tmp = M; M %= 4; L += (tmp/4); L %= 10; (N + M + L).writeln; }