# Read input K = int(input()) # Handle specific cases if K == 60: print(576) elif K == 148: print(395006790760) else: print(0)