#include <stdio.h>
float F(float, float);
int main(void) {
// your code goes here
return 0;
}
float F(float u, float v)
{
return u > 1 ? u + v : u >= 0 ? u - v : v - u;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpmbG9hdCBGKGZsb2F0LCBmbG9hdCk7CgppbnQgbWFpbih2b2lkKSB7CglwcmludGYoIiVmXHJcbiIsIEYoMTAsIDEwKSk7CglwcmludGYoIiVmXHJcbiIsIEYoMC41LCAxMCkpOwoJcHJpbnRmKCIlZlxyXG4iLCBGKC0xNSwgMTApKTsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXJldHVybiAwOwp9CgpmbG9hdCBGKGZsb2F0IHUsIGZsb2F0IHYpCnsKCXJldHVybiB1ID4gMSA/IHUgKyB2IDogdSA+PSAwID8gdSAtIHYgOiB2IC0gdTsKfQo=