Yaroslavl
The journey from Moscow to LKS is known to be quite lengthy. For many first-time travelers to the camp, particularly those in parallel D, it can be challenging to gauge how far the bus has traveled.
Interestingly, the bus may enter and exit Yaroslavl multiple times during the trip. Nikifor, the most observant member of parallel D, decided to keep track by noting down an opening parenthesis "(" each time the bus entered Yaroslavl, and a closing parenthesis ")" each time it exited.
At some point during the journey, his classmates asked him, "Are we still in Yaroslavl, or have we already passed it?". Since Nikifor isn't well-versed in programming, he needs your help to write a program that can answer this question based on his notes.
Input
The input consists of all the symbols Nikifor recorded in his notebook, presented as a single string without spaces or line breaks. The string contains no more than 50000 symbols.
Output
Your program should output "INSIDE" if the bus was inside Yaroslavl at the time of the question. If the bus was outside Yaroslavl, it should output "OUTSIDE". If Nikifor's records contain contradictions, such as exiting Yaroslavl when the bus was already outside or entering when it was already inside, the program should output "ERROR".