You are given an array of integers and a positive integer . Find and print the number of pairs where and is divisible by .
The first line contains integer and . The second line contains integers describing the values of .
Print the number of pairs where and is divisible by .