The outlet and plug type used in Latvia are C and F and in Madeira are C and F and they are compatible with each other.
In Madeira, outlets of type C and F are in use.
In Latvia, outlets of type C and F are in use.