import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int age = sc.nextInt(), value = sc.nextInt();
        
        if(age >= 13){
            System.out.println(value);
        }else if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        }
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int age = sc.nextInt(), value = sc.nextInt();
        
        if(age >= 13){
            System.out.println(value);
        }else if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        }
        
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int age = sc.nextInt(), value = sc.nextInt();
        
        if(age >= 13){
            System.out.println(value);
        }else if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        }
        
    } main {
        
        Scanner sc = new Scanner(System.in);
        
        int age = sc.nextInt(), value = sc.nextInt();
        
        if(age >= 13){
            System.out.println(value);
        }else if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int age = sc.nextInt() age sc.nextInt() sc.nextInt sc value = sc.nextInt(); value sc.nextInt() sc.nextInt sc if(age >= 13){
            System.out.println(value);
        }else if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        } age >= 13 age 13 {
            System.out.println(value);
        } System.out.println(value) System.out.println System.out System System.out value if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        } age <= 5 age 5 {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 {
            System.out.println(value/2);
        } System.out.println(value/2) System.out.println System.out System System.out value/2 value 2 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int age = sc.nextInt(), value = sc.nextInt();
        
        if(age >= 13){
            System.out.println(value);
        }else if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int age = sc.nextInt(), value = sc.nextInt();
        
        if(age >= 13){
            System.out.println(value);
        }else if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        }
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int age = sc.nextInt(), value = sc.nextInt();
        
        if(age >= 13){
            System.out.println(value);
        }else if(age <= 5){
            System.out.println(0);
        }else{
            System.out.println(value/2);
        }
        
    }
}
