@#include <iostream>
#include <fstream>
using namespace std;
ifstream in(“interclasare1.in”);
ofstream out(“interclasare1.out”);
int a1000001;
int b1000001;
int ic = 1;
void afisare(int x)
{
out << x;
if(ic++ % 10 == 0)
out << ‘\n’;
else
out << ‘ ‘;
}
int main()
{
int n, p, ac = 1, bc = 1;
in >> n;
for(int i = 1; i <= n; i++)
in >> a[i];