Arkady decide buy rose girlfriendA flower shop white orange red rose total n Arkady think red rose good white rose will not buy bouquet contain red white rose also Arkady will not buy bouquet rose color Arkady want buy exactly k rose for rose shop know beauty color beauty ith rise bi color ci W white rise o orange rise r red rise Compute maximum possible total beauty bouquet k rose satisfy constraint determine possible bouquet