User:Mr Pie 5/sandbox2

Input:

Output: