BEATING ONLINE COMPETITION WITH HARDWORK n