Long black fly

Long black flies have appeared on my Hydrangea. Can anyone tell me what they are and if they are harmful to my plants?