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

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int answer = B;
        if (A <= 5) {
            answer = 0;
        } else if (6 <= A && A <= 12) {
            answer = answer / 2;
        }
        System.out.println(answer);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int answer = B;
        if (A <= 5) {
            answer = 0;
        } else if (6 <= A && A <= 12) {
            answer = answer / 2;
        }
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int answer = B;
        if (A <= 5) {
            answer = 0;
        } else if (6 <= A && A <= 12) {
            answer = answer / 2;
        }
        System.out.println(answer);
    } main {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int answer = B;
        if (A <= 5) {
            answer = 0;
        } else if (6 <= A && A <= 12) {
            answer = answer / 2;
        }
        System.out.println(answer);
    } Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int answer = B; answer B if (A <= 5) {
            answer = 0;
        } else if (6 <= A && A <= 12) {
            answer = answer / 2;
        } A <= 5 A 5 {
            answer = 0;
        } answer = 0 answer 0 if (6 <= A && A <= 12) {
            answer = answer / 2;
        } 6 <= A && A <= 12 6 <= A 6 A A <= 12 A 12 {
            answer = answer / 2;
        } answer = answer / 2 answer answer / 2 answer 2 System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int answer = B;
        if (A <= 5) {
            answer = 0;
        } else if (6 <= A && A <= 12) {
            answer = answer / 2;
        }
        System.out.println(answer);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int answer = B;
        if (A <= 5) {
            answer = 0;
        } else if (6 <= A && A <= 12) {
            answer = answer / 2;
        }
        System.out.println(answer);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int A = scan.nextInt();
        int B = scan.nextInt();
        int answer = B;
        if (A <= 5) {
            answer = 0;
        } else if (6 <= A && A <= 12) {
            answer = answer / 2;
        }
        System.out.println(answer);
    }
}
