Antipalindrome#2197

Antipalindrome

1 second
64 megabytes
Easy

A palindrome is a string that reads the same forwards and backwards. You are given a string . Find its longest substring that is not a palindrome.

Input

The input contains the string . It consists only of lowercase Latin letters, is not empty, and its length does not exceed characters.

Output

Output the answer; if there are several answers, choose the lexicographically minimal one. If all substrings of are palindromes, output NO SOLUTION.

Examples

Example 1

Loading
Loading