#include using namespace std; int main(){ int x,y; int day=3; cin>>x>>y; for(int i=x;i<=y;i++){ if(i==23||i==24||i==25)day--; } cout<