import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	if(A<13&&A>5){
	    B/=2;
	}else if(A<6){
	    B=0;
	}
	System.out.println(B);
    }
}
		 import java.util.*; util.* java class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	if(A<13&&A>5){
	    B/=2;
	}else if(A<6){
	    B=0;
	}
	System.out.println(B);
    }
} Main public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	if(A<13&&A>5){
	    B/=2;
	}else if(A<6){
	    B=0;
	}
	System.out.println(B);
    } main {
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	if(A<13&&A>5){
	    B/=2;
	}else if(A<6){
	    B=0;
	}
	System.out.println(B);
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int A = stdIn.nextInt(); A stdIn.nextInt() stdIn.nextInt stdIn int B = stdIn.nextInt(); B stdIn.nextInt() stdIn.nextInt stdIn if(A<13&&A>5){
	    B/=2;
	}else if(A<6){
	    B=0;
	} A<13&&A>5 A<13 A 13 A>5 A 5 {
	    B/=2;
	} B/=2 B 2 if(A<6){
	    B=0;
	} A<6 A 6 {
	    B=0;
	} B=0 B 0 System.out.println(B) System.out.println System.out System System.out B String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	if(A<13&&A>5){
	    B/=2;
	}else if(A<6){
	    B=0;
	}
	System.out.println(B);
    }
}
		
