/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
static int foo() {
return 1;
}
static int bar() {
return 3;
}
{
int f = 1, b = 3;
int x = -1, y = -1;
int temp = (f < b) ? (x=foo()) : (y=bar());
System.
out.
println("x="+x
+", y="+y
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXN0YXRpYyBpbnQgZm9vKCkgewoJCVN5c3RlbS5vdXQucHJpbnRsbigiZm9vIik7CgkJcmV0dXJuIDE7Cgl9CglzdGF0aWMgaW50IGJhcigpIHsKCQlTeXN0ZW0ub3V0LnByaW50bG4oImJhciIpOwoJCXJldHVybiAzOwoJfQoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IGYgPSAxLCBiID0gMzsKCQlpbnQgeCA9IC0xLCB5ID0gLTE7CgkJaW50IHRlbXAgPSAoZiA8IGIpID8gKHg9Zm9vKCkpIDogKHk9YmFyKCkpOwoJCVN5c3RlbS5vdXQucHJpbnRsbigieD0iK3grIiwgeT0iK3kpOwoJfQp9