It is possible to use any
number of characters '/' as a delimiter in path instead of one traditional '/'. For
strings //usr///local//nginx/sbin// and /usr/local/nginx///sbi
n are equivalent. The character '/' (or some sequence of such characters) at the
end of the path is required only in case of the path to the root directory, which can be
represented as single character '/'.
A path called normalized if it contains the smallest possible number of
Your task is to transform a given path to the normalized form.