import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        try{
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            scanner.close();
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        try{
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            scanner.close();
        }
    }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        try{
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            scanner.close();
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        try{
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            scanner.close();
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) try{
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            scanner.close();
        } catch(Exception e){
            System.out.println(e.getMessage());
        } Exception e {
            System.out.println(e.getMessage());
        } System.out.println(e.getMessage()) System.out.println System.out System System.out e.getMessage() e.getMessage e {
            scanner.close();
        } scanner.close() scanner.close scanner {
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        } int age = scanner.nextInt(); age scanner.nextInt() scanner.nextInt scanner int adultPrice = scanner.nextInt(); adultPrice scanner.nextInt() scanner.nextInt scanner int finalPrice = -1; finalPrice -1 1 if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice; age<6 age 6 finalPrice = 0 finalPrice 0 if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice; age<13 age 13 finalPrice = adultPrice/2 finalPrice adultPrice/2 adultPrice 2 finalPrice = adultPrice finalPrice adultPrice System.out.println(finalPrice) System.out.println System.out System System.out finalPrice String args[] args public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        try{
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            scanner.close();
        }
    }
} public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        try{
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            scanner.close();
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        try{
            int age = scanner.nextInt();
            int adultPrice = scanner.nextInt();
            int finalPrice = -1;
            if(age<6) finalPrice = 0;
            else if(age<13) finalPrice = adultPrice/2;
            else finalPrice = adultPrice;
            System.out.println(finalPrice);
        }catch(Exception e){
            System.out.println(e.getMessage());
        }finally{
            scanner.close();
        }
    }
}
