#include [[nodiscard]] static inline constexpr uint_fast32_t solve(uint_fast32_t L, uint_fast32_t M, uint_fast32_t N) noexcept { M += N / 25, N %= 25; L += M / 4, M %= 4; L %= 10; return L + M + N; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); uint_fast32_t L, M, N; std::cin >> L >> M >> N; std::cout << solve(L, M, N) << '\n'; return 0; }