## DMPG '17 B2 - Yoda

View as PDF

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Talk like this, Yoda does. Hard to understand, this may be. If given a sentence you are, convert it into English can you? Since difficult this may be, bend the rules of English grammar you may.

Yoda-Speak English
Talk like this, Yoda does. Yoda does talk like this.
Hard to understand, this may be. This may be hard to understand.
If given a sentence you are, convert it into English can you? Convert it into English can you if given a sentence you are?
Since difficult this may be, bend the rules of English grammar you may. Bend the rules of English grammar you may since difficult this may be.

#### Input Specification

The input will be a single string , with length no longer than . It will not start with a lowercase letter, and finish with either a period (.), question mark (?), or exclamation mark (!). Additionally, there will only be a single comma within the string.

#### Output Specification

The converted string.

#### Sample Input 1

Speak like this, Yoda does.

#### Sample Output 1

Yoda does speak like this.

#### Sample Input 2

English, a language it is.

#### Sample Output 2

A language it is english.

#### Sample Input 3

Comma at the end,!

#### Sample Output 3

Comma at the end!