#include <stdio.h>
int main(void) {
int a = 1;
int b = 1;
while (1)
{
int c = (int)((double)a / b * 1000 + 0.5);
if (c < 334)
a++;
else if (c > 334)
b++;
else
break;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgYSA9IDE7CglpbnQgYiA9IDE7CgkKCXdoaWxlICgxKQoJewoJCWludCBjID0gKGludCkoKGRvdWJsZSlhIC8gYiAqIDEwMDAgKyAwLjUpOwoJCWlmIChjIDwgMzM0KQoJCQlhKys7CgkJZWxzZSBpZiAoYyA+IDMzNCkKCQkJYisrOwoJCWVsc2UKCQkJYnJlYWs7Cgl9CgkKCXByaW50ZigiJWQvJWQiLCBhLCBiKTsKCQoJcmV0dXJuIDA7Cn0K