#include<stdio.h>int main(){ int a,b,p; int bottle1,bottle2; while(scanf("%d%d%d",&a,&b,&p)!=EOF) { bottle1=0; bottle2=0; while(1) { if(bottle1==0) { bottle1=a; printf("fill An"); } if(bottle2+bottle1<=b) { bottle2+=bottle1; bottle1=0; } else { bottle1=bottle1-(b-bottle2); bottle2=b; } printf("pour A Bn"); if(bottle2==p) { printf("successn"); break; } if(bottle2==b) { bottle2=0; printf("empty Bn"); } } } return 0; }


