#include using namespace std; #define ll long long #define ul unsigned long long #define pb push_back #define ss second #define ff first #define fr(n) for(int i=0; i=0; i--) #define nl '\n' #define yes cout<<"YES"<>s; int lower_ct=0,upper_ct=0; for(char c:s) { if(islower(c)) lower_ct++; else upper_ct++; } if(upper_ct>lower_ct) { for(auto c:s) cout<> TC; while (TC--) solve(); }