#include<bits/stdc++.h>
using namespace std;
void shuchu(int a,int b,int c,int x)
{
if(x == 1)
{
if(b > c)
{
cout << "art";
}
else
{
cout << "comprehensive";
}
}
else
{
if(a < b && a < c)
{
cout << "library";
}
else if(b < a && b < c)
{
cout << "comprehensive";
}
else
{
cout << "art";
}
}
}
int main()
{
int n;
cin >> n;
int a, b, c;
cin >> a >> b >> c;
if(n > 3)
{
shuchu(a, b, c, 1);
}
if(n <= 3)
{
shuchu(a, b, c, 0);
}
if(n > 5)
{
cout << "art";
}
return 0;
}