Sample 1

Output 1a

Output 1b