import java.util.*;
import java.io.InputStreamReader;
import java.io.BufferedReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] s = br.readLine().split(" ");
        int a = Integer.parseInt(s[0]);
        int b = Integer.parseInt(s[1]);
        int ans = b;
        
        if (a <= 12) {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        }
        

        System.out.println(ans);
    }
}


 import java.util.*; util.* java import java.io.InputStreamReader; InputStreamReader java.io import java.io.BufferedReader; BufferedReader java.io public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] s = br.readLine().split(" ");
        int a = Integer.parseInt(s[0]);
        int b = Integer.parseInt(s[1]);
        int ans = b;
        
        if (a <= 12) {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        }
        

        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] s = br.readLine().split(" ");
        int a = Integer.parseInt(s[0]);
        int b = Integer.parseInt(s[1]);
        int ans = b;
        
        if (a <= 12) {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        }
        

        System.out.println(ans);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] s = br.readLine().split(" ");
        int a = Integer.parseInt(s[0]);
        int b = Integer.parseInt(s[1]);
        int ans = b;
        
        if (a <= 12) {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        }
        

        System.out.println(ans);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] s = br.readLine().split(" "); s br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(s[0]); a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int b = Integer.parseInt(s[1]); b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int ans = b; ans b if (a <= 12) {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        } a <= 12 a 12 {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        } ans /= 2 ans 2 if (a <= 5) {
                ans = 0;
            } a <= 5 a 5 {
                ans = 0;
            } ans = 0 ans 0 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] s = br.readLine().split(" ");
        int a = Integer.parseInt(s[0]);
        int b = Integer.parseInt(s[1]);
        int ans = b;
        
        if (a <= 12) {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        }
        

        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] s = br.readLine().split(" ");
        int a = Integer.parseInt(s[0]);
        int b = Integer.parseInt(s[1]);
        int ans = b;
        
        if (a <= 12) {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        }
        

        System.out.println(ans);
    }
} Main
import java.util.*;
import java.io.InputStreamReader;
import java.io.BufferedReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] s = br.readLine().split(" ");
        int a = Integer.parseInt(s[0]);
        int b = Integer.parseInt(s[1]);
        int ans = b;
        
        if (a <= 12) {
            ans /= 2;
            if (a <= 5) {
                ans = 0;
            }
        }
        

        System.out.println(ans);
    }
}



