#include <functional>
#include <iostream>
#include <map>
#include <string>

using namespace std;

void foo();
void foo2();

int main(){
    map<string, function<void()>> funcs{{"foo", foo},{"foo2", foo2}};
    
    string s;
    cin >> s;

    /*Take the input from cin and turn it into a function call, or some other
    form of runnable code, like so*/

	auto findIt = funcs.find(s);
	if (findIt != end(funcs)) (findIt->second)();
}

void foo(){
    cout << "Foo works, yay :D";
}

void foo2(){
    cout << "Foo2 works, yay :D";
}
