#include <stdio.h>
int main()
{ int jiu=0,ping=0,gai=0,qian,t;
scanf("%d",&qian);
while(qian>1||ping>1||gai>3)
{ if(qian>1)
{ t=qian/2;
qian%=2;
jiu+=t;
ping+=t;
gai+=t;
}
if(ping>1)
{ t=ping/2;
ping%=2;
jiu+=t;
ping+=t;
gai+=t;
}
if(gai>3)
{ t=gai/4;
gai%=4;
jiu+=t;
ping+=t;
gai+=t;
}
}
printf("能喝%d瓶酒\n",jiu);
if(ping+gai)printf("还剩");
{ if(ping)printf("%d个瓶",ping);
if(ping&&gai)printf("和");
if(gai)printf("%d个盖",gai);
}
return 0;
}