Wash the red beans thoroughly and soak them in water for about 6 hours.
Put the soaked beans in a pot and boil; discard the first water.
Pour fresh water over the beans and simmer until soft.
Drain the cooked beans through a sieve, mash them, and remove the skins.
Mix the mashed beans with sugar and salt thoroughly.
Over low heat, cook the mixture in a pan, stirring constantly to prevent burning.