import java.util.Scanner;

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

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