let a=Int(readLine()!)!var arr=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}

if( arr[0] >= 6 && ( arr[0] <= 12 ) ) {
  arr[1] = arr[1] / 2
} else if( arr[0] < 6 ) {
  arr[1] = 0
}
  
print( arr[1] )
  