Troynacci Query

Problem Name:
Troynacci Query
Site:CodeForces
Links:
Tags:
Problem setters: