import java.util.Scanner;
import java.util.*;
import java.lang.*; 
import java.util.regex.Pattern;
import java.text.DecimalFormat;
import java.util.stream.IntStream;
public class Main{ 
static int isOn(int S, int j) { return S & (1 << j); }
static int a,b,c;
static int[] dp=new int[4010];
static final int INF=1000000;
static boolean[] prime=new boolean[1000100]; 
public static void main(String[] args)
{ 
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
if(a>=13)
System.out.println(b);
if(a>=6 && a<=12)System.out.println(b/2);
if(a<=5) System.out.print(0);
}
} import java.util.Scanner; Scanner java.util import java.util.*; util.* java import java.lang.*; lang.* java import java.util.regex.Pattern; Pattern java.util.regex import java.text.DecimalFormat; DecimalFormat java.text import java.util.stream.IntStream; IntStream java.util.stream public class Main{ 
static int isOn(int S, int j) { return S & (1 << j); }
static int a,b,c;
static int[] dp=new int[4010];
static final int INF=1000000;
static boolean[] prime=new boolean[1000100]; 
public static void main(String[] args)
{ 
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
if(a>=13)
System.out.println(b);
if(a>=6 && a<=12)System.out.println(b/2);
if(a<=5) System.out.print(0);
}
} Main static int a a b b c; c static int[] dp=new int[4010]; dp new int[4010] 4010 static final int INF=1000000; INF 1000000 static boolean[] prime=new boolean[1000100]; prime new boolean[1000100] 1000100 static int isOn(int S, int j) { return S & (1 << j); } isOn { return S & (1 << j); } return S & (1 << j); S & (1 << j) S (1 << j) 1 j int S S int j j public static void main(String[] args)
{ 
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
if(a>=13)
System.out.println(b);
if(a>=6 && a<=12)System.out.println(b/2);
if(a<=5) System.out.print(0);
} main { 
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
if(a>=13)
System.out.println(b);
if(a>=6 && a<=12)System.out.println(b/2);
if(a<=5) System.out.print(0);
} 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 if(a>=13)
System.out.println(b); a>=13 a 13 System.out.println(b) System.out.println System.out System System.out b if(a>=6 && a<=12)System.out.println(b/2); a>=6 && a<=12 a>=6 a 6 a<=12 a 12 System.out.println(b/2) System.out.println System.out System System.out b/2 b 2 if(a<=5) System.out.print(0); a<=5 a 5 System.out.print(0) System.out.print System.out System System.out 0 String[] args args public class Main{ 
static int isOn(int S, int j) { return S & (1 << j); }
static int a,b,c;
static int[] dp=new int[4010];
static final int INF=1000000;
static boolean[] prime=new boolean[1000100]; 
public static void main(String[] args)
{ 
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
if(a>=13)
System.out.println(b);
if(a>=6 && a<=12)System.out.println(b/2);
if(a<=5) System.out.print(0);
}
} public class Main{ 
static int isOn(int S, int j) { return S & (1 << j); }
static int a,b,c;
static int[] dp=new int[4010];
static final int INF=1000000;
static boolean[] prime=new boolean[1000100]; 
public static void main(String[] args)
{ 
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
if(a>=13)
System.out.println(b);
if(a>=6 && a<=12)System.out.println(b/2);
if(a<=5) System.out.print(0);
}
} Main
import java.util.Scanner;
import java.util.*;
import java.lang.*; 
import java.util.regex.Pattern;
import java.text.DecimalFormat;
import java.util.stream.IntStream;
public class Main{ 
static int isOn(int S, int j) { return S & (1 << j); }
static int a,b,c;
static int[] dp=new int[4010];
static final int INF=1000000;
static boolean[] prime=new boolean[1000100]; 
public static void main(String[] args)
{ 
Scanner scanner=new Scanner(System.in);
int a=scanner.nextInt();
int b=scanner.nextInt();
if(a>=13)
System.out.println(b);
if(a>=6 && a<=12)System.out.println(b/2);
if(a<=5) System.out.print(0);
}
}
