import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        //int cost = num2;
        if(num1 <= 12){
            num2 /= 2;
        }
        if(num1 <= 5){
            num2 = 0;
        }
        System.out.println(num2);
        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        //int cost = num2;
        if(num1 <= 12){
            num2 /= 2;
        }
        if(num1 <= 5){
            num2 = 0;
        }
        System.out.println(num2);
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        //int cost = num2;
        if(num1 <= 12){
            num2 /= 2;
        }
        if(num1 <= 5){
            num2 = 0;
        }
        System.out.println(num2);
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        //int cost = num2;
        if(num1 <= 12){
            num2 /= 2;
        }
        if(num1 <= 5){
            num2 = 0;
        }
        System.out.println(num2);
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan if(num1 <= 12){
            num2 /= 2;
        } num1 <= 12 num1 12 {
            num2 /= 2;
        } num2 /= 2 num2 2 if(num1 <= 5){
            num2 = 0;
        } num1 <= 5 num1 5 {
            num2 = 0;
        } num2 = 0 num2 0 System.out.println(num2) System.out.println System.out System System.out num2 scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        //int cost = num2;
        if(num1 <= 12){
            num2 /= 2;
        }
        if(num1 <= 5){
            num2 = 0;
        }
        System.out.println(num2);
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        //int cost = num2;
        if(num1 <= 12){
            num2 /= 2;
        }
        if(num1 <= 5){
            num2 = 0;
        }
        System.out.println(num2);
        scan.close();
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        //int cost = num2;
        if(num1 <= 12){
            num2 /= 2;
        }
        if(num1 <= 5){
            num2 = 0;
        }
        System.out.println(num2);
        scan.close();
    }
}