f = lambda a, b: (b-a + 0.1) // (b-a + 0.2)
mx = lambda a,b: f(a,b) * a + f(b,a) * b + a * (1- f(a,b) - f(b,a))
for i in range(-10, 10):
for j in range(-10, 10):
t1 = mx(i,j)
t2 = max(i,j)
assert t1==t2
#print(f(i, j))
ZiA9IGxhbWJkYSBhLCBiOiAgKGItYSArIDAuMSkgLy8gKGItYSArIDAuMikKCgpteCA9IGxhbWJkYSBhLGI6IGYoYSxiKSAqIGEgKyBmKGIsYSkgKiBiICsgYSAqICgxLSBmKGEsYikgLSBmKGIsYSkpCgoKZm9yIGkgaW4gcmFuZ2UoLTEwLCAxMCk6Cglmb3IgaiBpbiByYW5nZSgtMTAsIDEwKToKCQl0MSA9IG14KGksaikKCQl0MiA9IG1heChpLGopCgkJYXNzZXJ0IHQxPT10MgoJCSNwcmludChmKGksIGopKQ==