Saute the potatoes, onion, and ham in a small amount of olive oil and season with salt and pepper to taste. Set aside.
Lightly fry the tortillas, and pat dry. Put on a plate
Warm up the refried beans, and spread onto the tortillas.
Fry an egg to your preferred level of doneness, and put on top of the tortilla and beans.
Top with salsa, queso fresco, and fresh cilantro.
Serve with the potato, onion, and ham mix.