#include <algorithm> 
#include <iostream> 
#include <string> 
using namespace std; 

#include <cctype> 
  
// required for conversion to lowercase 
class toLower {public: char operator()(char c) const {return tolower(c);}}; 
  
int main() 
{ 
  string light; 
  cout << "What color is the light? [Red/Green]: "; 
  getline(cin, light); 
  
  string lcLight = light;
  transform(lcLight.begin(), lcLight.end(), lcLight.begin(), toLower()); 
  
  if (lcLight == "red") 
    cout << "Stop and wait" << endl; 
} 
