import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String str = input.nextLine(); char[] chars = str.toCharArray(); int index = 0; swap(chars, 0, chars.length - 1); int start = 0; int end = 0; for (int i = 0; i < chars.le...