#include int main(){ int sum, c100, c25, c1; scanf("%d", &c100); scanf("%d", &c25); scanf("%d", &c1); sum = c100 * 100 + c25 * 25 + c1; sum %= 1000; c100 = sum / 100; sum %= 100; c25 = sum / 25; sum %= 25; c1 = sum; printf("%d", c1 + c25 + c100); return 0; }