Can someone tell me what this is

i had this black bump near my anus and a couple of days it later it turned into three white ones. i attached pictures for reference

image

image

is this painful also ?

This looks like a external hemorrhoid