using namespace std ;
int main () {
queue <string> languages;
languages.push("C") ;
languages.push("C++") ;
languages.push("Java") ;
languages.push("Python") ;
languages.pop();
cout << languages.front() << endl << endl ;
cout << languages.back() << endl << endl ;
cout << languages.size() << endl << endl ;
cout << languages.empty() ;
return 0 ;
}