import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { List s = split(sc.next()); int n = s.size(); boolean F = false; for (int i=0; i<=n; i++) { if (i<=n/2) {s.add(i,s.get(n-i-1));} else {s.add(i,s.get(n-i));} boolean b = true; for (int j=0; j split (String s){ List list = new ArrayList<>(); for (int i=0; i