#include <stdio.h>
void main()
{
int x,y;
if(x<1)
{
y=x;
}
else if (x>=1 && x<10)
{
y=2*x-1;
}
else
{
y=3*x-11;
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgbWFpbigpCnsKCWludCB4LHk7CglwcmludGYoIng6Iik7CglzY2FuZigiJWQiLCZ4KTsKCWlmKHg8MSkKCXsKCQl5PXg7Cgl9CgllbHNlIGlmICh4Pj0xICYmIHg8MTApCgl7CgkJeT0yKngtMTsKCX0KCWVsc2UKCXsKCQl5PTMqeC0xMTsKCX0KCXByaW50ZigieT0lZFxuIix5KTsKfQo=