use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let l: Vec<_> = s.lines().collect(); let n: Vec = l[0].split(' ').flat_map(str::parse).collect(); let mut a: Vec = l[1].split(' ').flat_map(str::parse).collect(); a.sort(); a.reverse(); let mut x = 0; for i in 0..n[0] { for j in i..n[0] { if a[i] * a[j] >= n[1] * 2 { x += if i == j { 1 } else { 2 }; } else { break; } } } println!("{x}") }