Three friends went on a camping trip and on the way they bought N donuts . They put them in their tent , and went swimming .
One of them came and divided the donuts in to 3 equal parts, fed one donut to the monkey, ate his share, then went back to swim.
The second friend came along and again he divided the donuts in to 3 equal parts, he fed one donut to the monkey, ate his share and went back to swim.
The third friend came along and again he divided the donuts in to 3 equal parts, he fed one donut to the monkey, ate his share and went back to swim.
Finally, all of the friends came together, divided the donuts in 3 equal parts and fed one to the monkey, each ate their share and then went home.
How many donuts were there in total? What is the value of N?
Hint 1
"N" is an integer
Hint 2
"N" in 2 digit number
Hint 3
Try reverse hit and trial approach.