import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 年齢
        int old = sc.nextInt();
        // 料金
        int price = sc.nextInt();
        price = old>12? price: 5<old && old<=12? price/2: 0;
        // 出力
        System.out.println(price);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 年齢
        int old = sc.nextInt();
        // 料金
        int price = sc.nextInt();
        price = old>12? price: 5<old && old<=12? price/2: 0;
        // 出力
        System.out.println(price);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 年齢
        int old = sc.nextInt();
        // 料金
        int price = sc.nextInt();
        price = old>12? price: 5<old && old<=12? price/2: 0;
        // 出力
        System.out.println(price);
    } main {
        Scanner sc = new Scanner(System.in);
        // 年齢
        int old = sc.nextInt();
        // 料金
        int price = sc.nextInt();
        price = old>12? price: 5<old && old<=12? price/2: 0;
        // 出力
        System.out.println(price);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int old = sc.nextInt(); old sc.nextInt() sc.nextInt sc int price = sc.nextInt(); price sc.nextInt() sc.nextInt sc price = old>12? price: 5<old && old<=12? price/2: 0 price old>12? price: 5<old && old<=12? price/2: 0 old>12 old 12 price 5<old && old<=12? price/2: 0 5<old && old<=12 5<old 5 old old<=12 old 12 price/2 price 2 0 System.out.println(price) System.out.println System.out System System.out price String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 年齢
        int old = sc.nextInt();
        // 料金
        int price = sc.nextInt();
        price = old>12? price: 5<old && old<=12? price/2: 0;
        // 出力
        System.out.println(price);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 年齢
        int old = sc.nextInt();
        // 料金
        int price = sc.nextInt();
        price = old>12? price: 5<old && old<=12? price/2: 0;
        // 出力
        System.out.println(price);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 年齢
        int old = sc.nextInt();
        // 料金
        int price = sc.nextInt();
        price = old>12? price: 5<old && old<=12? price/2: 0;
        // 出力
        System.out.println(price);
    }
}