print([0,7,0,915,0,132][int(input())])