import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int age = scan.nextInt();
    int price = scan.nextInt();
    if (6 <= age && age <= 12) {
      System.out.println(price/2);
    }
    else if (age < 6) {
      System.out.println("0");
    }
    else {
      System.out.println(price);
    }
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int age = scan.nextInt();
    int price = scan.nextInt();
    if (6 <= age && age <= 12) {
      System.out.println(price/2);
    }
    else if (age < 6) {
      System.out.println("0");
    }
    else {
      System.out.println(price);
    }
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int age = scan.nextInt();
    int price = scan.nextInt();
    if (6 <= age && age <= 12) {
      System.out.println(price/2);
    }
    else if (age < 6) {
      System.out.println("0");
    }
    else {
      System.out.println(price);
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int age = scan.nextInt();
    int price = scan.nextInt();
    if (6 <= age && age <= 12) {
      System.out.println(price/2);
    }
    else if (age < 6) {
      System.out.println("0");
    }
    else {
      System.out.println(price);
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int age = scan.nextInt(); age scan.nextInt() scan.nextInt scan int price = scan.nextInt(); price scan.nextInt() scan.nextInt scan if (6 <= age && age <= 12) {
      System.out.println(price/2);
    }
    else if (age < 6) {
      System.out.println("0");
    }
    else {
      System.out.println(price);
    } 6 <= age && age <= 12 6 <= age 6 age age <= 12 age 12 {
      System.out.println(price/2);
    } System.out.println(price/2) System.out.println System.out System System.out price/2 price 2 if (age < 6) {
      System.out.println("0");
    }
    else {
      System.out.println(price);
    } age < 6 age 6 {
      System.out.println("0");
    } System.out.println("0") System.out.println System.out System System.out "0" {
      System.out.println(price);
    } System.out.println(price) System.out.println System.out System System.out price String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int age = scan.nextInt();
    int price = scan.nextInt();
    if (6 <= age && age <= 12) {
      System.out.println(price/2);
    }
    else if (age < 6) {
      System.out.println("0");
    }
    else {
      System.out.println(price);
    }
  }
}