#PCBTAM0000012. Độ dài sau khi ghép (Length after Concatenation)
Độ dài sau khi ghép (Length after Concatenation)
Length after Concatenation
Version: Phuoc Hung OJ Extended
Problem Statement
Given strings and , append directly to without inserting any character. Determine the lengths of the first string, the second string, and their concatenation.
Existing spaces count as characters. The input line break separating and is not part of the concatenated string.
Input
The first line contains and the second contains . Either line may be empty.
Output
Print three space-separated integers: the length of , the length of , and the length of their concatenation.
Subtasks
- Subtask 1 (100 points): Unicode characters.
Examples
Example 1
Input
ab
cde
Output
2 3 5
Explanation. ab has length and cde length ; concatenation has length .
Example 2
Input
X
Output
0 1 1
Explanation. The empty first string has length , X has length , and the total is .
Example 3
Input
Đ
A B
Output
1 3 4
Explanation. Đ is one Unicode character and A B is three; total length .