存活证明
#include<iostream>
#include<cmath>
using namespace std;
int xiu=100000000;
bool ma[200000001];
int cnt;
int l;
int n;
int x;
int main(){
cin>>n;
for(int i=1;i<=n;++i){
cin>>x;
if(i==1){
l=x;
continue;
}
if(!ma[abs(l-x)]){
ma[abs(l-x)]=1;
// cnt++;
}
l=x;
}
for(int i=1;i<n;++i)
cnt+=(ma[i]);
if(cnt==n-1){
cout<<"Jolly";
return 0;
}
cout<<"Not jolly";
return 0;
}