Tiklīdz kā suns mani ieraudzīja, tas sāka riet.
As soon as the dog saw me, it began to bark.