#224. 字符串末尾字符大小写转换

    ID: 224 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-1gesp3字符串条件结构

字符串末尾字符大小写转换

Uppercase Last 3 Characters

Background

Congcong is learning about string manipulation. He encountered an interesting task that requires specific modifications to a string.

Problem Description

Given a string, return a new string where the last 33 characters are now in upper case. If the string has less than 33 characters, uppercase whatever is there. Note that str.toUpperCase() returns the uppercase version of a string.

Input Format

Input is given from Standard Input in the following format.

A string.

Output Format

Output is printed to Standard Output in the following format.

The modified string.

Sample

Hello
"HeLLO"
hi there
"hi thERE"
hi
"HI"

Sample Explanation

For the first sample input "Hello\