@@ -0,0 +1,22 @@
+#include <bits/stdc++.h>
+using namespace std;
+int readint() {
+ int t;
+ cin >> t;
+ return t;
+}
+int main() {
+ int n;
+ cin >> n;
+ queue<int> v;
+ while (n--) v.push(readint());
+ while (v.size() > 1) {
+ int cur = v.front();
+ cout << cur << " ";
+ v.pop();
+ v.push(v.front());
+ }
+ cout << v.front() << endl;
+ return 0;