int main(){ char i[4]; gets(gets(i)); if(i[3]>10||i[0]==i[1]||i[1]==i[2])puts("YES");else puts("NO"); return 0; }