#include <iostream>
#include <iomanip>
int main() {
double sales, discount, tax, total;
std::cout << "Enter sales amount: ";
std::cin >> sales;
discount = sales * 0.15;
tax = sales * 0.07;
total = (sales - discount) + tax;
std::cout << std::fixed << std::setprecision(2);
std::cout << "Discount: " << discount << " Baht\n";
std::cout << "Total amount due: " << total << " Baht\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KCmludCBtYWluKCkgewogICAgZG91YmxlIHNhbGVzLCBkaXNjb3VudCwgdGF4LCB0b3RhbDsKCiAgICBzdGQ6OmNvdXQgPDwgIkVudGVyIHNhbGVzIGFtb3VudDogIjsKICAgIHN0ZDo6Y2luID4+IHNhbGVzOwoKICAgIGRpc2NvdW50ID0gc2FsZXMgKiAwLjE1OwogICAgdGF4ID0gc2FsZXMgKiAwLjA3OwogICAgdG90YWwgPSAoc2FsZXMgLSBkaXNjb3VudCkgKyB0YXg7CgogICAgc3RkOjpjb3V0IDw8IHN0ZDo6Zml4ZWQgPDwgc3RkOjpzZXRwcmVjaXNpb24oMik7CiAgICBzdGQ6OmNvdXQgPDwgIkRpc2NvdW50OiAiIDw8IGRpc2NvdW50IDw8ICIgQmFodFxuIjsKICAgIHN0ZDo6Y291dCA8PCAiVG90YWwgYW1vdW50IGR1ZTogIiA8PCB0b3RhbCA8PCAiIEJhaHRcbiI7CgogICAgcmV0dXJuIDA7Cn0=