#include <iostream>
#include <string>
#include <queue>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
queue<int> q;
while(n--){
string cmd;
cin >> cmd;
if(cmd == "PUSH"){
int x;
cin >> x;
q.push(x);
}
else if(cmd == "POP"){
q.pop();
}
else if(cmd == "FRONT"){
q.front();
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: