Problem D-1

 

 

.