#define _CRT_SECURE_NO_WARNINGS #include int main(void){ int red = 0; int blue = 0; char color[5]; for(int i = 0; i < 3; i++){ gets(color); if(color[0] == 'R'){ red++; }else if(color[0] == 'B'){ blue++; } } if(red > blue){ printf("RED\n"); }else{ printf("BLUE\n"); } return 0; }