import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main {

    public static void main(String[] args) {

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        PrintWriter out = new PrintWriter(System.out);

        try {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } catch (IOException e) {

        }


    }


} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io public class Main {

    public static void main(String[] args) {

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        PrintWriter out = new PrintWriter(System.out);

        try {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } catch (IOException e) {

        }


    }


} Main public static void main(String[] args) {

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        PrintWriter out = new PrintWriter(System.out);

        try {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } catch (IOException e) {

        }


    } main {

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        PrintWriter out = new PrintWriter(System.out);

        try {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } catch (IOException e) {

        }


    } InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) try {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } catch (IOException e) {

        } catch (IOException e) {

        } IOException e {

        } {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } String strData = br.readLine(); strData br.readLine() br.readLine br String strDat[] = strData.split(" ", -1); strDat strData.split(" ", -1) strData.split strData " " -1 1 int intAge = Integer.parseInt(strDat[0]); intAge Integer.parseInt(strDat[0]) Integer.parseInt Integer strDat[0] strDat 0 int intYen = Integer.parseInt(strDat[1]); intYen Integer.parseInt(strDat[1]) Integer.parseInt Integer strDat[1] strDat 1 if (intAge <= 12) intYen /= 2; intAge <= 12 intAge 12 intYen /= 2 intYen 2 if (intAge <= 5) intYen = 0; intAge <= 5 intAge 5 intYen = 0 intYen 0 System.out.print(intYen ) System.out.print System.out System System.out intYen out.flush() out.flush out String[] args args public class Main {

    public static void main(String[] args) {

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        PrintWriter out = new PrintWriter(System.out);

        try {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } catch (IOException e) {

        }


    }


} public class Main {

    public static void main(String[] args) {

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        PrintWriter out = new PrintWriter(System.out);

        try {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } catch (IOException e) {

        }


    }


} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main {

    public static void main(String[] args) {

        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        PrintWriter out = new PrintWriter(System.out);

        try {
    		String strData = br.readLine();
    		String strDat[] = strData.split(" ", -1);

    		int intAge = Integer.parseInt(strDat[0]);
    		int intYen = Integer.parseInt(strDat[1]);

    		if (intAge <= 12) intYen /= 2;
    		if (intAge <= 5) intYen = 0;

    		System.out.print(intYen );


    		out.flush();


        } catch (IOException e) {

        }


    }


}