print(([0,0,1,1,2,3,5]+[11]*9)[int(input())-1])