Zaslat SMS: The mathematics of ship slamming