import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      
		if (0<=A&&A<=5){
           B = 0;
          System.out.print(B);
        }else if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        }
		// 出力
		
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      
		if (0<=A&&A<=5){
           B = 0;
          System.out.print(B);
        }else if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        }
		// 出力
		
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      
		if (0<=A&&A<=5){
           B = 0;
          System.out.print(B);
        }else if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        }
		// 出力
		
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      
		if (0<=A&&A<=5){
           B = 0;
          System.out.print(B);
        }else if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        }
		// 出力
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc if (0<=A&&A<=5){
           B = 0;
          System.out.print(B);
        }else if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        } 0<=A&&A<=5 0<=A 0 A A<=5 A 5 {
           B = 0;
          System.out.print(B);
        } B = 0 B 0 System.out.print(B) System.out.print System.out System System.out B if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        } 6<=A && A<=12 6<=A 6 A A<=12 A 12 {
           B = B/2;
          System.out.print(B);
        } B = B/2 B B/2 B 2 System.out.print(B) System.out.print System.out System System.out B if (13<=A && A<=100){
          System.out.print(B);
        } 13<=A && A<=100 13<=A 13 A A<=100 A 100 {
          System.out.print(B);
        } System.out.print(B) System.out.print System.out System System.out B String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      
		if (0<=A&&A<=5){
           B = 0;
          System.out.print(B);
        }else if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        }
		// 出力
		
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      
		if (0<=A&&A<=5){
           B = 0;
          System.out.print(B);
        }else if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        }
		// 出力
		
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      
		if (0<=A&&A<=5){
           B = 0;
          System.out.print(B);
        }else if (6<=A && A<=12){
           B = B/2;
          System.out.print(B);
        }else if (13<=A && A<=100){
          System.out.print(B);
        }
		// 出力
		
	}
}
