import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String str = sc.next(); int n = str.length(); ArrayList s = new ArrayList<>(); for (int i=0; i