Hide

Problem G
Finding An A

In this problem, you are given a single string s that is guaranteed to contain the letter a.

You should output the suffix of s that begins with the first occurrence of the letter a. Namely, if s consists of characters s1s2sn and i is the first index with si=a, then you should output the string sisi+1sn.

Why do you want to do this? To solve a problem in the contest!

Input

Input consists of a single line containing a single string s whose length is between 1 and 1000. The string is composed of lowercase letters with no spaces. You are guaranteed the letter a appears at least once in s.

Output

Output the suffix of s that begins with the first occurrence of the letter a.

Sample Input 1 Sample Output 1
banana
anana
Sample Input 2 Sample Output 2
polarbear
arbear
Sample Input 3 Sample Output 3
art
art
Hide

Please log in to submit a solution to this problem

Log in