#include <iostream>
#include <cmath>
int main()
{
double number = 123.4;
double integer;
double fraction = modf( number, & integer );
std::cout << int( fraction * 10.0 ) << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CgppbnQgbWFpbigpCnsKCWRvdWJsZSBudW1iZXIgPSAxMjMuNDsKICAgIGRvdWJsZSBpbnRlZ2VyOwogICAgZG91YmxlIGZyYWN0aW9uID0gbW9kZiggbnVtYmVyLCAmIGludGVnZXIgKTsKCiAgICBzdGQ6OmNvdXQgPDwgaW50KCBmcmFjdGlvbiAqIDEwLjAgKSA8PCBzdGQ6OmVuZGw7Cn0=