K=int(input())
if K=32:
  print(51)
elif K=24:
  print(15)
elif K=16:
  print(14)
elif K=8 or K=12 or K=18 or K=20 or K=27:
  print(5)
elif K=28 or K=30:
  print(4)
elif K=4 or K=6 or K=9 or K=10 or K=14 or K=21 or K=22 or K=25 or K=26:
  print(2)