import java.io.*;

public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} import java.io.*; io.* java public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main public static void main(String[] args) {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } run {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    } catch(IOException e) {
      System.err.println(e);
    } IOException e {
      System.err.println(e);
    } System.err.println(e) System.err.println System.err System System.err e {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(System.out) PrintWriter out = new PrintWriter(System.out) new PrintWriter(System.out) String[] lines = in.readLine().split(" "); lines in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int a = Integer.parseInt(lines[0]); a Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 int b = Integer.parseInt(lines[1]); b Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 int ans = 0; ans 0 if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b; 0 <= a && a < 6 0 <= a 0 a a < 6 a 6 ans = 0 ans 0 if(a <13) ans = b / 2;
        else ans = b; a <13 a 13 ans = b / 2 ans b / 2 b 2 ans = b ans b System.out.println(ans) System.out.println System.out System System.out ans public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main
import java.io.*;

public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  private void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

        String[] lines = in.readLine().split(" ");
        int a = Integer.parseInt(lines[0]);
        int b = Integer.parseInt(lines[1]);

        int ans = 0;
        if(0 <= a && a < 6) ans = 0;
        else if(a <13) ans = b / 2;
        else ans = b;

        System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
}