K = int(input()) if K == 60: print(576) elif K == 148: print(395006790760) else: print(0)