import java.util.Scanner;

public class Main {
    //Ferris Wheel
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int cost = sc.nextInt();
        sln(age, cost);
    }

    public static void sln(int age, int cost) {
        if (age >= 13) System.out.println(cost);
        else if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    //Ferris Wheel
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int cost = sc.nextInt();
        sln(age, cost);
    }

    public static void sln(int age, int cost) {
        if (age >= 13) System.out.println(cost);
        else if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0);
    }
} Main //Ferris Wheel
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int cost = sc.nextInt();
        sln(age, cost);
    } main {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int cost = sc.nextInt();
        sln(age, cost);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int age = sc.nextInt(); age sc.nextInt() sc.nextInt sc int cost = sc.nextInt(); cost sc.nextInt() sc.nextInt sc sln(age, cost) sln age cost String[] args args public static void sln(int age, int cost) {
        if (age >= 13) System.out.println(cost);
        else if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0);
    } sln {
        if (age >= 13) System.out.println(cost);
        else if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0);
    } if (age >= 13) System.out.println(cost);
        else if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0); age >= 13 age 13 System.out.println(cost) System.out.println System.out System System.out cost if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0); age >= 6 && age <= 12 age >= 6 age 6 age <= 12 age 12 System.out.println(cost / 2) System.out.println System.out System System.out cost / 2 cost 2 if (age < 6) System.out.println(0); age < 6 age 6 System.out.println(0) System.out.println System.out System System.out 0 int age age int cost cost public class Main {
    //Ferris Wheel
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int cost = sc.nextInt();
        sln(age, cost);
    }

    public static void sln(int age, int cost) {
        if (age >= 13) System.out.println(cost);
        else if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0);
    }
} public class Main {
    //Ferris Wheel
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int cost = sc.nextInt();
        sln(age, cost);
    }

    public static void sln(int age, int cost) {
        if (age >= 13) System.out.println(cost);
        else if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0);
    }
} Main
import java.util.Scanner;

public class Main {
    //Ferris Wheel
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int age = sc.nextInt();
        int cost = sc.nextInt();
        sln(age, cost);
    }

    public static void sln(int age, int cost) {
        if (age >= 13) System.out.println(cost);
        else if (age >= 6 && age <= 12) System.out.println(cost / 2);
        else if (age < 6) System.out.println(0);
    }
}