#include using namespace std; int main(){ int A,B,ok; cin>>A>>B; if((A>25)||(B<23)){ ok=3; }else if(A<23){ ok=25-B; }else{ ok=A-24; } if(ok<0){ ok=0; } cout<