var a,c:integer;
begin
write('квартира');
read(a);
c:=a*16;
if(a>248) then write(a) else write(c);
end.
var a,c:integer;
begin
write('квартира');
read(a);
c:=a*16;
if(a>248) then write(a) else write(c);
end.