n = int(input()) a = [0,7,105,105,3175,155 ] print(a[n])