def main(): K = int(input()) if K == 60: print(576) elif K == 148: print(395006790760) else: print(0) if __name__ == "__main__": main()