#include <iostream>
using namespace std;
string alphabets = "abcdefghijklmnopqrstuvwxyz";
void panLipogramChecker(string s)
{
for(int i=0; i<s.length(); i++){
s[i] = tolower(s[i]);
}
int counter = 0;
for(int i=0; i<26; i++){
int pos = s.find(alphabets[i]);
if(pos<0 || pos>s.length()){
counter +=1;
}
}
if(counter == 0){
cout<<"Pangram"<<endl;
} else if(counter >=2){
cout<<"Not a pangram but might be lipogram";
} else {
cout<<"Pangrammatic lipogram"<<endl;
}
}
int main()
{
string str = "The quick brown fox jumped over the lazy dog";
panLipogramChecker(str);
str = "The quick brown fox jumps over the lazy dog";
panLipogramChecker(str);
str = "The quick brown fox jum over the lazy dog";
panLipogramChecker(str);
}