def print_calculo(l, r):
return ((l + (r - 1)) / 2, (l + (r - 1)) // 2)
print(print_calculo(5, 3)) # resultado de (l + (r - 1)) par
print(print_calculo(5, 4)) # resultado de (l + (r - 1)) impar
ZGVmIHByaW50X2NhbGN1bG8obCwgcik6CglyZXR1cm4gKChsICsgKHIgLSAxKSkgLyAyLCAobCArIChyIC0gMSkpIC8vIDIpCgkKcHJpbnQocHJpbnRfY2FsY3Vsbyg1LCAzKSkgIyByZXN1bHRhZG8gZGUgKGwgKyAociAtIDEpKSBwYXIKcHJpbnQocHJpbnRfY2FsY3Vsbyg1LCA0KSkgIyByZXN1bHRhZG8gZGUgKGwgKyAociAtIDEpKSBpbXBhcg==