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