Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- #include <algorithm>
- #include <cstdlib>
- #include <limits.h>
- #include <string>
- #define ll long long
- using namespace std;
- void Fast_IO();
- void Rofyda_Elghadban(){
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- /*ll gcd(ll num1,ll num2){
- while(num2!=0){
- ll temp=num1;
- num1=num2;
- num2=temp%num1;
- }
- return num1;
- }
- ll lcm(ll num1,ll num2){
- return(num1/gcd(num1,num2))*num2;
- }*/
- int main()
- { Rofyda_Elghadban();
- //Fast_IO();
- //freopen("input.txt","r",stdin);
- //freopen("output.txt","r",stdout);
- string s;
- cin>>s;
- int capital=0,small=0;
- for(int i=0;i<s.size();i++){
- if(s[i]>=65&&s[i]<=90){
- capital++;
- }else if(s[i]>=97&&s[i]<=122){
- small++;
- }
- }if(capital>small){
- for(int i=0;i<s.size();i++){
- s[i]-=32;
- cout<<s[i];
- }
- }else if(small>=capital){
- for(int i=0;i<s.size();i++){
- s[i]+=32;
- cout<<s[i];
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement