#include int main() { int a, b; scanf("%d %d", &a, &b); int ans = 0; if (23 < a || b < 23)ans++; if (24 < a || b < 24)ans++; if (25 < a || b < 25)ans++; printf("%d\n", ans); return 0; }