#!/bin/bash
# your code goes here

awk -F'[ /]' '{print $2,$NF}'