def sum (a): 
    if a == 1:
        return 1
    return sum (a-2) + a
a = int(input("Введите число: "))
if a % 2 == 0:
    a -= 1
c = sum(a)
print (c)
00a1a53eff811f48c3a5438eb1514863041c6317
<mask token>

def sum(a):
    if a == 1:
        return 1
    return sum(a - 2) + a


<mask token>

def sum(a):
    if a == 1:
        return 1
    return sum(a - 2) + a


<mask token>
if a % 2 == 0:
    a -= 1
<mask token>
print(c)

def sum(a):
    if a == 1:
        return 1
    return sum(a - 2) + a


a = int(input('Введите число: '))
if a % 2 == 0:
    a -= 1
c = sum(a)
print(c)

def sum (a): 
    if a == 1:
        return 1
    return sum (a-2) + a
a = int(input("Введите число: "))
if a % 2 == 0:
    a -= 1
c = sum(a)
print (c)