import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int age = Integer.parseInt(sc.next());
    int fee = Integer.parseInt(sc.next());
    if(age <= 5) System.out.println(0);
    else if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int age = Integer.parseInt(sc.next());
    int fee = Integer.parseInt(sc.next());
    if(age <= 5) System.out.println(0);
    else if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int age = Integer.parseInt(sc.next());
    int fee = Integer.parseInt(sc.next());
    if(age <= 5) System.out.println(0);
    else if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee);
  } main {
    Scanner sc = new Scanner(System.in);
    int age = Integer.parseInt(sc.next());
    int fee = Integer.parseInt(sc.next());
    if(age <= 5) System.out.println(0);
    else if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int age = Integer.parseInt(sc.next()); age Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int fee = Integer.parseInt(sc.next()); fee Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(age <= 5) System.out.println(0);
    else if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee); age <= 5 age 5 System.out.println(0) System.out.println System.out System System.out 0 if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee); age <= 12 age 12 System.out.println(fee / 2) System.out.println System.out System System.out fee / 2 fee 2 System.out.println(fee) System.out.println System.out System System.out fee String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int age = Integer.parseInt(sc.next());
    int fee = Integer.parseInt(sc.next());
    if(age <= 5) System.out.println(0);
    else if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int age = Integer.parseInt(sc.next());
    int fee = Integer.parseInt(sc.next());
    if(age <= 5) System.out.println(0);
    else if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int age = Integer.parseInt(sc.next());
    int fee = Integer.parseInt(sc.next());
    if(age <= 5) System.out.println(0);
    else if(age <= 12) System.out.println(fee / 2);
    else System.out.println(fee);
  }
}
