Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
294 B
0
Indexable
Never
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
	int a, b, c, d;
	cin >> d;
	a = b = c = 0;
	if (d >= 440) {
		a += d / 440;
	}
	if (d >= 125) {
		b += d / 125;
	}
	if (d >= 50) {
		c += d / 50;
	}
	cout << a << ' ' << b << ' ' << c;
}