import std.stdio;
import std.algorithm;
import std.range;
void main() {
int[] array = [2, 3, 3, 4, 5 ];
int index = 3;
writeln(find((take(array,index)~drop(array,index+1)),4).length>0);
}
aW1wb3J0IHN0ZC5zdGRpbzsKaW1wb3J0IHN0ZC5hbGdvcml0aG07CmltcG9ydCBzdGQucmFuZ2U7Cgp2b2lkIG1haW4oKSB7CiAgICBpbnRbXSBhcnJheSA9IFsyLCAzLCAzLCA0LCA1IF07CiAgICBpbnQgaW5kZXggPSAzOwogCgl3cml0ZWxuKGZpbmQoKHRha2UoYXJyYXksaW5kZXgpfmRyb3AoYXJyYXksaW5kZXgrMSkpLDQpLmxlbmd0aD4wKTsKfQ==