import java.util.*;
import java.io.*;

class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        System.out.println(a >= 13 ? b : (a <= 5 ? 0 : b/2));
   }
} import java.util.*; util.* java import java.io.*; io.* java class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        System.out.println(a >= 13 ? b : (a <= 5 ? 0 : b/2));
   }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        System.out.println(a >= 13 ? b : (a <= 5 ? 0 : b/2));
   } main {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        System.out.println(a >= 13 ? b : (a <= 5 ? 0 : b/2));
   } 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 System.out.println(a >= 13 ? b : (a <= 5 ? 0 : b/2)) System.out.println System.out System System.out a >= 13 ? b : (a <= 5 ? 0 : b/2) a >= 13 a 13 b (a <= 5 ? 0 : b/2) a <= 5 a 5 0 b/2 b 2 String[] args args
import java.util.*;
import java.io.*;

class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        System.out.println(a >= 13 ? b : (a <= 5 ? 0 : b/2));
   }
}
