staticconstauto io_speed_up =[](){
ios::sync_with_stdio(false);
cin.tie(0);return0;}();classCashier{public:int fn , p =0;int mp[205];double dc;Cashier(int n,int discount, vector<int>& products, vector<int>& prices){
fn = n;dc =(100.0- discount)/100;
n = products.size();for(int i =0;i<n;i++){
mp[products[i]]=prices[i];}}doublegetBill(vector<int> product, vector<int> amount){double ans =0;int n = product.size();for(int i =0;i<n;i++){
ans +=(amount[i]* mp[product[i]]);}
p++;if(p == fn){p =0;return ans * dc;}elsereturn ans;}};/**
* Your Cashier object will be instantiated and called as such:
* Cashier* obj = new Cashier(n, discount, products, prices);
* double param_1 = obj->getBill(product,amount);
*/
staticconstauto io_speed_up =[](){
ios::sync_with_stdio(false);
cin.tie(0);return0;}();typedeflonglong LL;classSolution{public:int cnt[3]={0};intnumberOfSubstrings(string s){int len = s.size();
LL ans =0;int l =0, r =-1;int is =0;while(l<len){if(is==3){
ans +=(len - r);
cnt[s[l]-'a']--;if(!cnt[s[l++]-'a'])is--;}else{if(++r==len)break;if(!(cnt[s[r]-'a']++))is++;}}return ans;}};
classSolution{public:typedeflonglong LL;const LL mod =1e9+7;intcountOrders(int n){
LL p =1;for(int i =1;i<n;i++){
p =(LL)(i*2+1)*(i +1)%mod * p %mod;}return p;}};