Reverse Each Word

Reverse every word in a string while maintaining the order of words.

Input Format

Single line: A string with words separated by spaces

Output Format

A string with each word reversed

Sample Input

hello world

Sample Output

olleh dlrow

Try Your Code

← Back to Problems List