import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int a = stdIn.nextInt();
    int b = stdIn.nextInt();
    int count = 0;
    if(a>=13) {
      count += b;
    } else if(a<=12&&a>=6) {
      count += (b/2);
    } else {
      count = 0;
    }
    System.out.println(count);
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int a = stdIn.nextInt();
    int b = stdIn.nextInt();
    int count = 0;
    if(a>=13) {
      count += b;
    } else if(a<=12&&a>=6) {
      count += (b/2);
    } else {
      count = 0;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int a = stdIn.nextInt();
    int b = stdIn.nextInt();
    int count = 0;
    if(a>=13) {
      count += b;
    } else if(a<=12&&a>=6) {
      count += (b/2);
    } else {
      count = 0;
    }
    System.out.println(count);
  } main {
    Scanner stdIn = new Scanner(System.in);
    int a = stdIn.nextInt();
    int b = stdIn.nextInt();
    int count = 0;
    if(a>=13) {
      count += b;
    } else if(a<=12&&a>=6) {
      count += (b/2);
    } else {
      count = 0;
    }
    System.out.println(count);
  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn int count = 0; count 0 if(a>=13) {
      count += b;
    } else if(a<=12&&a>=6) {
      count += (b/2);
    } else {
      count = 0;
    } a>=13 a 13 {
      count += b;
    } count += b count b if(a<=12&&a>=6) {
      count += (b/2);
    } else {
      count = 0;
    } a<=12&&a>=6 a<=12 a 12 a>=6 a 6 {
      count += (b/2);
    } count += (b/2) count (b/2) b 2 {
      count = 0;
    } count = 0 count 0 System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int a = stdIn.nextInt();
    int b = stdIn.nextInt();
    int count = 0;
    if(a>=13) {
      count += b;
    } else if(a<=12&&a>=6) {
      count += (b/2);
    } else {
      count = 0;
    }
    System.out.println(count);
  }
}