#include <iostream> using namespace std; int main() { int dividend, divisor; cin >> dividend >> divisor; if (divisor == 0) { cout << "Error: Division by zero is undefined." << endl; return 1; } int quotient = dividend / divisor; int remainder = dividend % divisor; cout << quotient << " " << remainder << endl; return 0; }