#include <stdio.h>
main(void) {
// your code goes here
int m = 4620;
int a = m / 1000;
int b = m%1000/500;
int c = m%1000%500/100;
int d = m%1000%500%100/10;
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgptYWluKHZvaWQpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWludCBtID0gNDYyMDsKCWludCBhID0gbSAvIDEwMDA7CglpbnQgYiA9IG0lMTAwMC81MDA7CglpbnQgYyA9IG0lMTAwMCU1MDAvMTAwOwoJaW50IGQgPSBtJTEwMDAlNTAwJTEwMC8xMDsKCXByaW50ZigiJWRcbiIsIGEpOwoJcHJpbnRmKCIlZFxuIiwgYik7CglwcmludGYoIiVkXG4iLCBjKTsKCXByaW50ZigiJWRcbiIsIGQpOwoJcmV0dXJuIDA7Cn0K