#include <iostream>

using namespace std;

int main()
{ int a; int b;
    cin>>a;cin >> b;
    if (a >=13){


    }
    else if (a>=v6 && a<=12 ){
        b = b/2;

    }
    else if(a<=5){
        b=0;
    }

cout << b<<endl;

}
