import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();

    int fare;
    if (A >= 13) {
      fare = B;
    } else if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    }

    System.out.println(fare);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();

    int fare;
    if (A >= 13) {
      fare = B;
    } else if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    }

    System.out.println(fare);
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();

    int fare;
    if (A >= 13) {
      fare = B;
    } else if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    }

    System.out.println(fare);
  } main {
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();

    int fare;
    if (A >= 13) {
      fare = B;
    } else if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    }

    System.out.println(fare);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner int B = scanner.nextInt(); B scanner.nextInt() scanner.nextInt scanner int fare; fare if (A >= 13) {
      fare = B;
    } else if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    } A >= 13 A 13 {
      fare = B;
    } fare = B fare B if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    } A >= 6 A 6 {
      fare = B / 2;
    } fare = B / 2 fare B / 2 B 2 {
      fare = 0;
    } fare = 0 fare 0 System.out.println(fare) System.out.println System.out System System.out fare String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();

    int fare;
    if (A >= 13) {
      fare = B;
    } else if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    }

    System.out.println(fare);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();

    int fare;
    if (A >= 13) {
      fare = B;
    } else if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    }

    System.out.println(fare);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();

    int fare;
    if (A >= 13) {
      fare = B;
    } else if (A >= 6) {
      fare = B / 2;
    } else {
      fare = 0;
    }

    System.out.println(fare);
  }
}