#include <cmath>
#include <iostream>
using namespace std;
class Val {
int a;
float b;
public:
Val& operator= (const int _a) {a = _a; b = _a + fmod(b, 1.0F);}
Val& operator= (const float _b) {b = _b; a = trunc(_b);}
operator int() {return a;}
operator float() {return b;}
};
int main() {
Val foo;
foo = 1.3F;
cout << static_cast<int>(foo) << endl << static_cast<float>(foo) << endl;
foo = 13;
cout << static_cast<int>(foo) << endl << static_cast<float>(foo) << endl;
}
I2luY2x1ZGUgPGNtYXRoPgojaW5jbHVkZSA8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpjbGFzcyBWYWwgewoJaW50IGE7CglmbG9hdCBiOwpwdWJsaWM6CglWYWwmIG9wZXJhdG9yPSAoY29uc3QgaW50IF9hKSB7YSA9IF9hOyBiID0gX2EgKyBmbW9kKGIsIDEuMEYpO30KCVZhbCYgb3BlcmF0b3I9IChjb25zdCBmbG9hdCBfYikge2IgPSBfYjsgYSA9IHRydW5jKF9iKTt9CglvcGVyYXRvciBpbnQoKSB7cmV0dXJuIGE7fQoJb3BlcmF0b3IgZmxvYXQoKSB7cmV0dXJuIGI7fQp9OwoKaW50IG1haW4oKSB7CglWYWwgZm9vOwoJCglmb28gPSAxLjNGOwoJCgljb3V0IDw8IHN0YXRpY19jYXN0PGludD4oZm9vKSA8PCBlbmRsIDw8IHN0YXRpY19jYXN0PGZsb2F0Pihmb28pIDw8IGVuZGw7CgkKCWZvbyA9IDEzOwoJCgljb3V0IDw8IHN0YXRpY19jYXN0PGludD4oZm9vKSA8PCBlbmRsIDw8IHN0YXRpY19jYXN0PGZsb2F0Pihmb28pIDw8IGVuZGw7Cn0=