TCCC '24 Apr P2 - Usernamxxxe

View as PDF

Submit solution

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

Author:
Problem type

Thornhill Computer Club 2024 - April Contest - Problem 2

While typing out a cool username to use for the popular game League of Legends, alan11 was unfortunately hit by a rock which caused him to type gibberish. He desired to have a bunch of capital X's at the front of his username but they ended up in random places due to the impact. Write a program that removes all X's in a given string of length L (10 \le L \le 1000) and moves them to the front, making them all uppercase.

Input Specifications

The first and only line of input will contain the string

Output Specifications

Print the corrected, Cooler username

Sample Input 1

forxtXnixteR

Sample Output 1

XXXfortniteR

Comments

There are no comments at the moment.