Getting WA for problem D from kickstart round C

Link to problem

My Solution

Can you please check my solution and find where am i making mistake.

Ltree,Stree,Tree should be long long.it passes test after that change

it worked!!
Thanks a lot !! :slightly_smiling_face: