import os

num1 = int(raw_input("Enter the number 1:"))

num2 = 17

if num1 >= 17:
    diff = num1 - num2
    val = diff * 2
    print val
elif num1 < 17:
    diff = num1 - num2
    val1 = abs(diff)
    print val1


