#include
using namespace std;
int main()
{
int n;
while (cin>>n && n!=0)
{
int c1=0,c7=0,c12=0; //coins
int sum=n;
c12=sum/12; sum%=12; //total C12 coins
c7=sum/7; sum%=7; //total C7 coins
c1=sum; //total C1 coins
while (c12>0 && c1>=2) //as long as we have positive number of C12 coins and 2 or more C1 coins
{ //we can use this procedure to remove one coin at a time
c12--; //-12 (-1 coin)
c7+=2; //+14 (+2 coins)
c1-=2; //-2 (-2 coins)
//------------------------
// 0 (-1 coin) => 1 coin was removed, leaving the total the same
}
int total=c1+c7+c12;
cout<<"The bill of "<1) cout<<"s";
cout<<" can be paid by using "<1) cout<<"s";
cout<<"."<