import java.util.Scanner;

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

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