"""
Entradas
variable A-->int-->a
variable B-->int-->b
variable C-->int-->c
variable D-->int-->d
Salidas
Número-->int-->n
"""
a = (input("Igrese la variable A:"))
b = (input("Igrese la variable B:"))
c = (input("Igrese la variable C:"))
d = (input("Igrese la variable D:"))

n=int((a+b+c+d))

c=int(c)
if(c>5):
 r=round(n, -2)
 print(r)

else:
  (c<5)
  r=int((round(n, -2)))
  print(r)
  