A pangram uses every English letter at least once. A double pangram uses each letter at least twice, and a triple pangram at least three times. Classify each given sentence.
The first line contains the number of test cases n. Each of the next n lines is a sentence with English letters and punctuation.
For each case, print Case i: followed by Not a pangram, Pangram!, Double pangram!!, or Triple pangram!!!. Print only the highest matching grade.