The first is from the joint reign Ivan V/ Peter I.
KG#1586
I have entered your coin in the database by duplicating and modifying the KG#1585 which is very similar.
N#360836
It will be available after validation by the referee,
then I don't know if the date should be “ND (1682-1696) оМ” or “ND (1682-1696) Russia”