#include <iostream>
#include <unordered_map>
#include <exception>
#include <string>

int main() {
    const std::unordered_map<char, std::string> CoffeeSizes = {
        {'S', "SMALL"},
        {'M', "MEDIUM"},
        {'L', "LARGE"}
    };

    try {
        char sz;
        std::cout << "Enter coffee size (S or M or L): ";
        std::cin >> sz;
        std::cout << "\nYou chose: " << CoffeeSizes.at(sz) << " cup sized coffee.\n";
    } catch (const std::exception& e) {
        std::cerr << "Invalid coffee size entered.\n";
        return 1;
    }
    return 0;
}