#include #include using namespace std; int N,P,Q,A[200]; int p10[1<<17]; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N>>P>>Q; for(int i=0;i>A[i]; sort(A,A+N); long ans=0; for(int a=0;a