import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class Main {

  public static void main(String[] args) {
    solve(System.in, System.out);
  }

  static void solve(InputStream is, PrintStream os) {
    Scanner sc = new Scanner(is);

    /* read */

    int a = sc.nextInt();
    int b = sc.nextInt();

    if (13 <= a) {
      os.println(b);
    } else if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    }
  }
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.*; util.* java public class Main {

  public static void main(String[] args) {
    solve(System.in, System.out);
  }

  static void solve(InputStream is, PrintStream os) {
    Scanner sc = new Scanner(is);

    /* read */

    int a = sc.nextInt();
    int b = sc.nextInt();

    if (13 <= a) {
      os.println(b);
    } else if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    }
  }
} Main public static void main(String[] args) {
    solve(System.in, System.out);
  } main {
    solve(System.in, System.out);
  } solve(System.in, System.out) solve System.in System System.in System.out System System.out String[] args args static void solve(InputStream is, PrintStream os) {
    Scanner sc = new Scanner(is);

    /* read */

    int a = sc.nextInt();
    int b = sc.nextInt();

    if (13 <= a) {
      os.println(b);
    } else if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    }
  } solve {
    Scanner sc = new Scanner(is);

    /* read */

    int a = sc.nextInt();
    int b = sc.nextInt();

    if (13 <= a) {
      os.println(b);
    } else if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    }
  } Scanner sc = new Scanner(is); sc new Scanner(is) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if (13 <= a) {
      os.println(b);
    } else if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    } 13 <= a 13 a {
      os.println(b);
    } os.println(b) os.println os b if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    } 6 <= a 6 a {
      os.println(b/2);
    } os.println(b/2) os.println os b/2 b 2 {
      os.println(0);
    } os.println(0) os.println os 0 InputStream is is PrintStream os os public class Main {

  public static void main(String[] args) {
    solve(System.in, System.out);
  }

  static void solve(InputStream is, PrintStream os) {
    Scanner sc = new Scanner(is);

    /* read */

    int a = sc.nextInt();
    int b = sc.nextInt();

    if (13 <= a) {
      os.println(b);
    } else if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    }
  }
} public class Main {

  public static void main(String[] args) {
    solve(System.in, System.out);
  }

  static void solve(InputStream is, PrintStream os) {
    Scanner sc = new Scanner(is);

    /* read */

    int a = sc.nextInt();
    int b = sc.nextInt();

    if (13 <= a) {
      os.println(b);
    } else if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    }
  }
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class Main {

  public static void main(String[] args) {
    solve(System.in, System.out);
  }

  static void solve(InputStream is, PrintStream os) {
    Scanner sc = new Scanner(is);

    /* read */

    int a = sc.nextInt();
    int b = sc.nextInt();

    if (13 <= a) {
      os.println(b);
    } else if (6 <= a) {
      os.println(b/2);
    } else {
      os.println(0);
    }
  }
}