#include <iostream>
int main()
{
double n = 1.00;
int q = 6;
n = n*q - ((5 * n) / 100 * q);
std::cout << "Expected: 5.7\n";
std::cout << "Actual: " << n << '\n';
n = 2.50;
q = 100;
n = n*q - ((10 * n) / 100 * q);
std::cout << "Expected: 225\n";
std::cout << "Actual: " << n << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CiAgICBkb3VibGUgbiA9IDEuMDA7CiAgICBpbnQgcSA9IDY7CgogICAgbiA9IG4qcSAtICgoNSAqIG4pIC8gMTAwICogcSk7CgogICAgc3RkOjpjb3V0IDw8ICJFeHBlY3RlZDogNS43XG4iOwogICAgc3RkOjpjb3V0IDw8ICJBY3R1YWw6ICIgPDwgbiA8PCAnXG4nOwogICAgCiAgICBuID0gMi41MDsKICAgIHEgPSAxMDA7CiAgICAKICAgIG4gPSBuKnEgLSAoKDEwICogbikgLyAxMDAgKiBxKTsKCglzdGQ6OmNvdXQgPDwgIkV4cGVjdGVkOiAyMjVcbiI7CglzdGQ6OmNvdXQgPDwgIkFjdHVhbDogIiA8PCBuIDw8ICdcbic7Cn0=