import java.util.*; public class Modulo { public static void main (String[] args) { Scanner sc = new Scanner(System.in); String a = sc.nextLine(); for (int i = a.length()-1; i >= 0; i--) System.out.println(a.substring(i, i+1)); } }