A configuration system stores nested keys as dot-separated paths, e.g. server.http.port. Due to careless string concatenation, a path may end up with leading dots, trailing dots, or repeated dots between segments (e.g. ..server..http.port.). You must normalize such a path: split it on ., drop every empty segment that results (from a leading dot, a trailing dot, or two or more dots in a row), and join the remaining segments back together with a single ..
Input format
Line 1: a string S consisting only of lowercase letters, digits, underscores, and dots. S may be empty (a blank line).
Output format
The normalized path. If every segment of S is empty (including when S itself is empty), print an empty line.
Constraints
- 0 ≤ length of
S≤ 200 Scontains only characters from[a-z0-9_.]