import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int year = scn.nextInt();
        int cost = scn.nextInt();
        if(6<=year&&year<=12){
            System.out.println(cost/2);
        }else if(year<6){
            System.out.println(0);
        }else{
            System.out.println(cost);
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int year = scn.nextInt();
        int cost = scn.nextInt();
        if(6<=year&&year<=12){
            System.out.println(cost/2);
        }else if(year<6){
            System.out.println(0);
        }else{
            System.out.println(cost);
        }
    }
} Main public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int year = scn.nextInt();
        int cost = scn.nextInt();
        if(6<=year&&year<=12){
            System.out.println(cost/2);
        }else if(year<6){
            System.out.println(0);
        }else{
            System.out.println(cost);
        }
    } main {
        Scanner scn=new Scanner(System.in);
        int year = scn.nextInt();
        int cost = scn.nextInt();
        if(6<=year&&year<=12){
            System.out.println(cost/2);
        }else if(year<6){
            System.out.println(0);
        }else{
            System.out.println(cost);
        }
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int year = scn.nextInt(); year scn.nextInt() scn.nextInt scn int cost = scn.nextInt(); cost scn.nextInt() scn.nextInt scn if(6<=year&&year<=12){
            System.out.println(cost/2);
        }else if(year<6){
            System.out.println(0);
        }else{
            System.out.println(cost);
        } 6<=year&&year<=12 6<=year 6 year year<=12 year 12 {
            System.out.println(cost/2);
        } System.out.println(cost/2) System.out.println System.out System System.out cost/2 cost 2 if(year<6){
            System.out.println(0);
        }else{
            System.out.println(cost);
        } year<6 year 6 {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 {
            System.out.println(cost);
        } System.out.println(cost) System.out.println System.out System System.out cost String arg[] arg
import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int year = scn.nextInt();
        int cost = scn.nextInt();
        if(6<=year&&year<=12){
            System.out.println(cost/2);
        }else if(year<6){
            System.out.println(0);
        }else{
            System.out.println(cost);
        }
    }
}