#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
template<typename T>
bool is_bigger(T* arr, size_t size) {
return all_of(arr+1,arr+size,[](T& elem){return *(&elem-1)<elem;});
}
bool is_bigger(char *str) {
return is_bigger(str,strlen(str));
}
int main() {
int a[]={1,4,6,8};
int b[]={1,4,6,3};
char c[] = "abceghopqr";
char d[] = "abceghfxyz";
float e[] = {1.0,7.9,32.3,1e6};
if(is_bigger(a,sizeof(a)/sizeof(a[0]))){
cout <<"A"<<endl;
}
if(is_bigger(b,sizeof(b)/sizeof(b[0]))){
cout <<"B"<<endl;
}
if(is_bigger(c)){
cout <<"C"<<endl;
}
if(is_bigger(d)){
cout <<"D"<<endl;
}
cout<< "BONUS: ";
if(is_bigger(e,sizeof(e)/sizeof(e[0]))){
cout <<"E"<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KI2luY2x1ZGUgPGFsZ29yaXRobT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnRlbXBsYXRlPHR5cGVuYW1lIFQ+CmJvb2wgaXNfYmlnZ2VyKFQqIGFyciwgc2l6ZV90IHNpemUpIHsKCXJldHVybiBhbGxfb2YoYXJyKzEsYXJyK3NpemUsW10oVCYgZWxlbSl7cmV0dXJuICooJmVsZW0tMSk8ZWxlbTt9KTsKfQoKYm9vbCBpc19iaWdnZXIoY2hhciAqc3RyKSB7CglyZXR1cm4gaXNfYmlnZ2VyKHN0cixzdHJsZW4oc3RyKSk7Cn0KCmludCBtYWluKCkgewoJaW50IGFbXT17MSw0LDYsOH07CglpbnQgYltdPXsxLDQsNiwzfTsKCWNoYXIgY1tdID0gImFiY2VnaG9wcXIiOwoJY2hhciBkW10gPSAiYWJjZWdoZnh5eiI7CglmbG9hdCBlW10gPSB7MS4wLDcuOSwzMi4zLDFlNn07CglpZihpc19iaWdnZXIoYSxzaXplb2YoYSkvc2l6ZW9mKGFbMF0pKSl7CgkJY291dCA8PCJBI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