import Control.Monad
import qualified Data.ByteString.Char8 as BS
import Data.Maybe (fromJust)
import Data.List as List
import Data.Char

takeHeadAndUpper :: String -> Char
takeHeadAndUpper = toUpper . head

solve :: [String] -> String
solve [] = ""
solve (x:xs) = [(takeHeadAndUpper x)] ++ (solve xs)

main :: IO()
main = do
    s <- map BS.unpack . BS.words <$> BS.getLine
    putStrLn $ solve s
