#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
int main(){
int n;
scanf("%d", &n);
int num[n
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
int main(){
int n;
scanf("%d", &n);
int num[n