// Arup Guha
// 1/28/2026
// String Concat Question with monogram addition
// Practice Question for COP 3330 Quiz Review

import java.util.*;

public class monogram {

	public static void main(String[] args) {
		
		// Get first and last names.
		Scanner stdin = new Scanner(System.in);
		System.out.println("Enter your first and last name.");
		String first = stdin.next();
		String last = stdin.next();
		
		// Just call concat explicitly twice.
		String fullName = last.concat(", ").concat(first);
		
		// Get first 2 letters of first name, first letter of last name.
		String firstTwo = first.substring(0, 2);
		String lastOne = last.substring(0, 1);
		
		// concat and go uppercase.
		String monogram = firstTwo.concat(lastOne).toUpperCase();
		
		// Show result.
		System.out.println(fullName+" has momogram "+monogram);
	}
}