#include <iostream> #include <stack> #include <string> using namespace std; int main() { int m; cin >> m; int t = m; stack<string> st; string s; while (t--) { cin >> s; st.push(s); } t = m; for (int i = 0; i < m; i++) { stack<string> stt = st; int j ; //m=60 for (j = 0; j < m - i - 1; j++) { stt.pop(); } if (i > 3) { int tem = 3; for (j = 0; j <= tem ; j++) { cout << j + 1 << "=" << stt.top() << " "; stt.pop(); } } else { for (j = 0; j <= i ; j++) { cout << j + 1 << "=" << stt.top() << " "; stt.pop(); } } cout << endl; } } // 64 位输出请用 printf("%lld")