import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    //final List<Integer> list = new ArrayList<>();
    //final List<Long> list2 = new ArrayList<>();

    int a = sc.nextInt();
    int b = sc.nextInt();
    
    if(a >= 13){
        System.out.println(b);
    }else if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    }



    



   
    





}
} import java.io.BufferedReader; BufferedReader java.io import java.io.*; io.* java import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util import java.util.Collections; Collections java.util import java.util.Arrays; Arrays java.util public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    //final List<Integer> list = new ArrayList<>();
    //final List<Long> list2 = new ArrayList<>();

    int a = sc.nextInt();
    int b = sc.nextInt();
    
    if(a >= 13){
        System.out.println(b);
    }else if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    }



    



   
    





}
} Main public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    //final List<Integer> list = new ArrayList<>();
    //final List<Long> list2 = new ArrayList<>();

    int a = sc.nextInt();
    int b = sc.nextInt();
    
    if(a >= 13){
        System.out.println(b);
    }else if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    }



    



   
    





} main {
    
    final Scanner sc = new Scanner(System.in);
    //final List<Integer> list = new ArrayList<>();
    //final List<Long> list2 = new ArrayList<>();

    int a = sc.nextInt();
    int b = sc.nextInt();
    
    if(a >= 13){
        System.out.println(b);
    }else if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    }



    



   
    





} final 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(a >= 13){
        System.out.println(b);
    }else if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    } a >= 13 a 13 {
        System.out.println(b);
    } System.out.println(b) System.out.println System.out System System.out b if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    } 6 <= a && a<= 12 6 <= a 6 a a<= 12 a 12 {
        System.out.println(b/2);
    } System.out.println(b/2) System.out.println System.out System System.out b/2 b 2 {
        System.out.println(0);
    } System.out.println(0) System.out.println System.out System System.out 0 final String[] args args public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    //final List<Integer> list = new ArrayList<>();
    //final List<Long> list2 = new ArrayList<>();

    int a = sc.nextInt();
    int b = sc.nextInt();
    
    if(a >= 13){
        System.out.println(b);
    }else if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    }



    



   
    





}
} public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    //final List<Integer> list = new ArrayList<>();
    //final List<Long> list2 = new ArrayList<>();

    int a = sc.nextInt();
    int b = sc.nextInt();
    
    if(a >= 13){
        System.out.println(b);
    }else if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    }



    



   
    





}
} Main
import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    //final List<Integer> list = new ArrayList<>();
    //final List<Long> list2 = new ArrayList<>();

    int a = sc.nextInt();
    int b = sc.nextInt();
    
    if(a >= 13){
        System.out.println(b);
    }else if(6 <= a && a<= 12){
        System.out.println(b/2);
    }else{
        System.out.println(0);
    }



    



   
    





}
}