#include #include using namespace std; const int maxn=10005; struct Ant { int id,p,d; inline bool operator<(const Ant &b) const { return pL) printf("Fell off\n"); else printf("%d %s\n",aft[id].p,st[aft[id].d+1]); } printf("\n"); } return 0; }