#include <iostream> using namespace std; int main() { string str; int lion=0; for(int i=0;i<9;i++){ cin>>str; if(str=="Lion") lion++; } if(lion>=5) cout<<"Lion"; else cout<<"Tiger"; return 0;}
Lion Lion Tiger Tiger Lion Lion Tiger Tiger Tiger
Tiger
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!