Problem Description

One URL string like domain/path is provided (no spaces). Create URL class with domain() and path() methods. If no '/', path is EMPTY.

Input Format

One line url.

Output Format

Two lines: domain then path.

Sample Test Case

Input:
example.com/home/page
Output:
example.com /home/page

Constraints

Length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next