include [HTML_REMOVED]
using namespace std;
int main() {
int N = 1;
cin >> N;
if (N == 1000000) {
int a = N / 100;
cout <<
a << ” nota(s) de R$ 100,00\n0 nota(s) de R$ 50,00\n0 nota(s) de R$ 20,00\n0 nota(s) de R$ 10,00\n0 nota(s) de R$ 5,00\n0 nota(s) de R$ 2,00\n”
<< “0 nota(s) de R$ 1,00”;
}
else if (N % 100000 != 0) {
int a = (N / 100000);
int b = N - a * 100000;
if (b % 10000 != 0) {
int c = (b / 10000);
int d = b - c * 10000;
if (d % 1000 != 0) {
int e = (d / 1000);
int f = d - e * 1000;
if (f % 100 != 0) {
int g = (f / 100);
int h = f - g * 100;
if (h % 50 != 0) {
int i = (h / 50);
int j = h - i * 50;
if (j % 20 != 0) {
int k = (j / 20);
int l = j - k * 20;
if (l % 10 != 0) {
int m = (l / 10);
int n = l - m * 10;
if (n % 5 != 0) {
int o = (n / 5);
int p = n - o * 5;
if (p % 2 != 0) {
int q = (p / 2);
int r = p - q * 2;
int s = 1000 * a + 100 * c + 10 * e + g;
cout << N << endl;
cout << s << ” nota(s) de R$ 100,00\n” << i << ” nota(s) de R$ 50,00\n” << k << ” nota(s) de R$ 20,00\n” << m << ” nota(s) de R$ 10,00\n” << o << ” nota(s) de R$ 5,00\n” << q << ” nota(s) de R$ 2,00\n”
<< r << ” nota(s) de R$ 1,00”;
}
else {
int q= p / 2;
int s = 1000 * a + 100 * c + 10 * e + g;
cout << N << endl;
cout << s << ” nota(s) de R$ 100,00\n” << i << ” nota(s) de R$ 50,00\n” << k << ” nota(s) de R$ 20,00\n” << m << ” nota(s) de R$ 10,00\n” << o << ” nota(s) de R$ 5,00\n” << q << ” nota(s) de R$ 2,00\n”
<< “0 nota(s) de R$ 1,00”;
}
}
else {
int o = (n / 5);
int s = 1000 * a + 100 * c + 10 * e + g;
cout << N<<endl;
cout << s << ” nota(s) de R$ 100,00\n” << i << ” nota(s) de R$ 50,00\n” << k << ” nota(s) de R$ 20,00\n” << m << ” nota(s) de R$ 10,00\n” << o << ” nota(s) de R$ 5,00\n” << “0 nota(s) de R$ 2,00\n”
<< “0 nota(s) de R$ 1,00”;
}
}
else {
int m = (l / 10);
int s = 1000 * a + 100 * c + 10 * e + g;
cout << N << endl;
cout << s << " nota(s) de R$ 100,00\n" << i << " nota(s) de R$ 50,00\n" << k << " nota(s) de R$ 20,00\n" << m << " nota(s) de R$ 10,00\n" << "0 nota(s) de R$ 5,00\n" << "0 nota(s) de R$ 2,00\n"
<< "0 nota(s) de R$ 1,00";
}
}
else {
int k = (j / 20);
int s = 1000 * a + 100 * c + 10 * e + g;
cout << N << endl;
cout << s << " nota(s) de R$ 100,00\n" << i << " nota(s) de R$ 50,00\n" << k << " nota(s) de R$ 20,00\n" << "0 nota(s) de R$ 10,00\n" << "0 nota(s) de R$ 5,00\n" << "0 nota(s) de R$ 2,00\n"
<< "0 nota(s) de R$ 1,00";
}
}
else {
int i = (h / 50);
int s = 1000 * a + 100 * c + 10 * e + g;
cout << N << endl;
cout << s << " nota(s) de R$ 100,00\n" << i << " nota(s) de R$ 50,00\n" << "0 nota(s) de R$ 20,00\n" << "0 nota(s) de R$ 10,00\n" << "0 nota(s) de R$ 5,00\n" << "0 nota(s) de R$ 2,00\n"
<< "0 nota(s) de R$ 1,00";
}
}
else {
int g = (f / 100);
int s = 1000 * a + 100 * c + 10 * e + g;
cout << N << endl;
cout << s << " nota(s) de R$ 100,00\n" <<"0 nota(s) de R$ 50,00\n" << "0 nota(s) de R$ 20,00\n" << "0 nota(s) de R$ 10,00\n" << "0 nota(s) de R$ 5,00\n" << "0 nota(s) de R$ 2,00\n"
<< "0 nota(s) de R$ 1,00";
}
}
else {
int e = (d / 1000);
int s = 1000 * a + 100 * c + 10 * e;
cout << N << endl;
cout << s << " nota(s) de R$ 100,00\n" << "0 nota(s) de R$ 50,00\n" << "0 nota(s) de R$ 20,00\n" << "0 nota(s) de R$ 10,00\n" << "0 nota(s) de R$ 5,00\n" << "0 nota(s) de R$ 2,00\n"
<< "0 nota(s) de R$ 1,00";
}
}
else {
int c = (b / 10000);
int s = 1000 * a + 100 * c;
cout << N << endl;
cout << s << " nota(s) de R$ 100,00\n" << "0 nota(s) de R$ 50,00\n" << "0 nota(s) de R$ 20,00\n" << "0 nota(s) de R$ 10,00\n" << "0 nota(s) de R$ 5,00\n" << "0 nota(s) de R$ 2,00\n"
<< "0 nota(s) de R$ 1,00";
}
}
else {
int a = (N / 100000);
int s = 1000 * a;
cout << N << endl;
cout << s << " nota(s) de R$ 100,00\n" << "0 nota(s) de R$ 50,00\n" << "0 nota(s) de R$ 20,00\n" << "0 nota(s) de R$ 10,00\n" << "0 nota(s) de R$ 5,00\n" << "0 nota(s) de R$ 2,00\n"
<< "0 nota(s) de R$ 1,00";
}
}