import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strs = br.readLine().split(" ");
    int age = Integer.parseInt(strs[0]);
    int money = Integer.parseInt(strs[1]);
    if (age < 13) {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } else {
      System.out.println(money);
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strs = br.readLine().split(" ");
    int age = Integer.parseInt(strs[0]);
    int money = Integer.parseInt(strs[1]);
    if (age < 13) {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } else {
      System.out.println(money);
    }
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strs = br.readLine().split(" ");
    int age = Integer.parseInt(strs[0]);
    int money = Integer.parseInt(strs[1]);
    if (age < 13) {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } else {
      System.out.println(money);
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strs = br.readLine().split(" ");
    int age = Integer.parseInt(strs[0]);
    int money = Integer.parseInt(strs[1]);
    if (age < 13) {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } else {
      System.out.println(money);
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] strs = br.readLine().split(" "); strs br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int age = Integer.parseInt(strs[0]); age Integer.parseInt(strs[0]) Integer.parseInt Integer strs[0] strs 0 int money = Integer.parseInt(strs[1]); money Integer.parseInt(strs[1]) Integer.parseInt Integer strs[1] strs 1 if (age < 13) {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } else {
      System.out.println(money);
    } age < 13 age 13 {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      } age < 6 age 6 {
        System.out.println(0);
      } System.out.println(0) System.out.println System.out System System.out 0 {
        System.out.println(money / 2);
      } System.out.println(money / 2) System.out.println System.out System System.out money / 2 money 2 {
      System.out.println(money);
    } System.out.println(money) System.out.println System.out System System.out money String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strs = br.readLine().split(" ");
    int age = Integer.parseInt(strs[0]);
    int money = Integer.parseInt(strs[1]);
    if (age < 13) {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } else {
      System.out.println(money);
    }
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strs = br.readLine().split(" ");
    int age = Integer.parseInt(strs[0]);
    int money = Integer.parseInt(strs[1]);
    if (age < 13) {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } else {
      System.out.println(money);
    }
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] strs = br.readLine().split(" ");
    int age = Integer.parseInt(strs[0]);
    int money = Integer.parseInt(strs[1]);
    if (age < 13) {
      if (age < 6) {
        System.out.println(0);
      } else {
        System.out.println(money / 2);
      }
    } else {
      System.out.println(money);
    }
  }
}