#include <iostream>
using namespace std;
int main() {
unsigned n;
cin >> n;
cout << n << endl;
unsigned t = 100;
while (t){
unsigned m = n / t;
cout << m << " nota(s) de R$ " << t << ",00" << endl;
n = n % t;
t = t==50 ? 20 : t/2;
}
return 0;
}