
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);
    int age = cin.nextInt();
    int cost = cin.nextInt();

    if (age >= 13) {
      System.out.println(cost);
    }
    else if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    }
  }

} import java.io.FileNotFoundException; FileNotFoundException java.io import java.io.FileReader; FileReader java.io import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);
    int age = cin.nextInt();
    int cost = cin.nextInt();

    if (age >= 13) {
      System.out.println(cost);
    }
    else if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    }
  }

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

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);
    int age = cin.nextInt();
    int cost = cin.nextInt();

    if (age >= 13) {
      System.out.println(cost);
    }
    else if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    }
  } main {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);
    int age = cin.nextInt();
    int cost = cin.nextInt();

    if (age >= 13) {
      System.out.println(cost);
    }
    else if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    }
  } Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int age = cin.nextInt(); age cin.nextInt() cin.nextInt cin int cost = cin.nextInt(); cost cin.nextInt() cin.nextInt cin if (age >= 13) {
      System.out.println(cost);
    }
    else if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    } age >= 13 age 13 {
      System.out.println(cost);
    } System.out.println(cost) System.out.println System.out System System.out cost if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    } age>=6 && age<=12 age>=6 age 6 age<=12 age 12 {
      System.out.println(cost/2);
    } System.out.println(cost/2) System.out.println System.out System System.out cost/2 cost 2 {
      System.out.println(0);
    } System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);
    int age = cin.nextInt();
    int cost = cin.nextInt();

    if (age >= 13) {
      System.out.println(cost);
    }
    else if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    }
  }

} public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);
    int age = cin.nextInt();
    int cost = cin.nextInt();

    if (age >= 13) {
      System.out.println(cost);
    }
    else if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    }
  }

} Main

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);
    int age = cin.nextInt();
    int cost = cin.nextInt();

    if (age >= 13) {
      System.out.println(cost);
    }
    else if (age>=6 && age<=12) {
      System.out.println(cost/2);
    }
    else {
      System.out.println(0);
    }
  }

}
