using System.Collections.Generic;
using System.Threading.Tasks;
namespace PointInTheFigure
static void Main(string[] args)
int h = int.Parse(Console.ReadLine());
int x = int.Parse(Console.ReadLine());
int y = int.Parse(Console.ReadLine());
if ((x < 0 || x > 3 * h || y < 0 || y > 4 * h) ||
((x >= 0 && x < h) && (y > h && y <= 4 * h)) ||
((x > 2 * h && x <= 3 * h) && (y > h && y <= 4 * h)))
Console.WriteLine("outside");
else if ((x > 0 && x < 3 * h && y > 0 && y < h) ||
(x > h && x < 2 * h && y > h && y < 4 * h) ||
(x > h && x < 2 * h && y == h))
Console.WriteLine("inside");
Console.WriteLine("border");