/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int limit = 5 ;
		StringBuilder sb = new StringBuilder() ;
		
		Scanner sc = new Scanner(System.in);

		String input;
		int codePoint;
		
		for ( int i = 0 ; i < limit ; i++ ) {
		    input = sc.next();
		    int[] codePoints = input.codePoints().toArray() ;
		    if ( codePoints.length == 1 ) {
		        codePoint = codePoints[ 0 ] ;
		        System.out.println( "for index " + i + " the input character is: " + Character.toString( codePoint ) );
		        sb.appendCodePoint( codePoint );
		        System.out.println("so we get the current result " + sb.toString() );
		    } else {
		        System.out.println( "Enter just one character." );
		        break;
		    }
		}
		
		System.out.println( "Done: " + sb.toString() ) ;
	}
}