#include using namespace std; typedef long long ll; int main() { int n; string s; cin>>n>>s; if (n>=4) puts("YES"); else { for (int i=1;i