Month of Strings

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

It's finally August, the month of strings! Every August, programmers come together to sharpen their string manipulation skills. Given a string, perform the following operations:

  1. Convert the text to all uppercase.
  2. If the string contains the word AUGUST, output NOU instead.
  3. Reverse the string.
  4. Replace all 'A' characters with 'S'.

Input Specification

There will be one line of input, which is the string to process

Output Specification

Output the modified string.

Sample Input 1

iLovEAnimALs

Sample Output 1

SLSMINSEVOLI

Sample Input 2

auGustIsSoCool

Sample Output 2

NOU

Comments