a=int(input("enter no. a"))

b=int(input("enter no. b"))

c=int(input("enter no. c"))

s=a+b+c

if(a==b)&(b==c):

    s=3*s

    print(s)

else:

    print(s)



z=int(input("enter no. please"))

x=z-17

if(z>17):

    x=2*x

    print(x)

else:

   print(-x)



