String-Algorithm

A sample String declaration: String myString = "Hello World!" Given two strings of lowercase English letters, and , perform the following operations: Sum the lengths of and determine if is lexicographically larger than (i.e.: does come before in the dictionary?). Capitalize the first letter in and and print them on a single line, separated by a space.

The first line contains a string . The second line contains another string . NB: The strings are comprised of only lowercase English letters.

Sample Input
hello java