#include <stdio.h>
int main(void) {
int max, i;
while (scanf("%d", &i
) > 0) if (!(i % 5) && i > max)
max = i;
// your code goes here
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgbWF4LCBpOwoJc2NhbmYoIiVkIiwgJm1heCk7Cgl3aGlsZSAoc2NhbmYoIiVkIiwgJmkpID4gMCkKCQlpZiAoIShpICUgNSkgJiYgaSA+IG1heCkKCQkJbWF4ID0gaTsKCXByaW50ZigiJWRcbiIsIG1heCk7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglyZXR1cm4gMDsKfQo=