#include <iostream>
#include <string>

using namespace std;

int main()
{
    int count = 0;
    char str[100][50] = { {0} };
    char stt[100] = { 0 };
    string s;
    getline(cin, s);
    const char* p = s.c_str();
    for (int i = 0; i < 100; i++)
    {
        for (int j = 0; j < 50; j++)
        {
            str[i][j] = *p;
            p++;
            if (*p == ' ')
            {
                p++;
                break;
            }
            if (*p == '\0')
            {
                break;
            }
        }
        if (*p == '\0')
        {
            break;
        }
        count++;
    }
    for (int i = 0; i < count+1; i++)
    {
        stt[i] = toupper(str[i][0]);
    }
    cout << stt;
}