import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int age = sc.nextInt();
    int price = sc.nextInt();

    int pay = 0;

    if (age >= 13) {
      pay = price;
    } else if (age >= 6 && age <= 12) {
      pay = price / 2;
    } else if (age <= 6) {
      pay = 0;
    }

    System.out.println(pay);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int age = sc.nextInt();
    int price = sc.nextInt();

    int pay = 0;

    if (age >= 13) {
      pay = price;
    } else if (age >= 6 && age <= 12) {
      pay = price / 2;
    } else if (age <= 6) {
      pay = 0;
    }

    System.out.println(pay);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int age = sc.nextInt();
    int price = sc.nextInt();

    int pay = 0;

    if (age >= 13) {
      pay = price;
    } else if (age >= 6 && age <= 12) {
      pay = price / 2;
    } else if (age <= 6) {
      pay = 0;
    }

    System.out.println(pay);
  } main {
    Scanner sc = new Scanner(System.in);

    int age = sc.nextInt();
    int price = sc.nextInt();

    int pay = 0;

    if (age >= 13) {
      pay = price;
    } else if (age >= 6 && age <= 12) {
      pay = price / 2;
    } else if (age <= 6) {
      pay = 0;
    }

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

    int age = sc.nextInt();
    int price = sc.nextInt();

    int pay = 0;

    if (age >= 13) {
      pay = price;
    } else if (age >= 6 && age <= 12) {
      pay = price / 2;
    } else if (age <= 6) {
      pay = 0;
    }

    System.out.println(pay);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int age = sc.nextInt();
    int price = sc.nextInt();

    int pay = 0;

    if (age >= 13) {
      pay = price;
    } else if (age >= 6 && age <= 12) {
      pay = price / 2;
    } else if (age <= 6) {
      pay = 0;
    }

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

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int age = sc.nextInt();
    int price = sc.nextInt();

    int pay = 0;

    if (age >= 13) {
      pay = price;
    } else if (age >= 6 && age <= 12) {
      pay = price / 2;
    } else if (age <= 6) {
      pay = 0;
    }

    System.out.println(pay);
  }
}
