Envoyer par SMS: Circle-valued Morse theory