Inside or outside?

Problem Name:
Inside or outside?
Site:Spoj
Links:
Tags:
Problem setters: