#include "bits/stdc++.h" using namespace std; #define print(x) cout< PI; typedef pair V; typedef vector VE; const ll mod = 1000000007; string s; int n; string cut(int i,int j){ return s.substr(i-1,j-i+1); } int main(){ cin>>n; cin>>s; bool flag=0; if(n>3){print("YES");} else{ rep(i,1,n){ for(int j=i;j+1-i