using System;
public class Program
{
public enum ItemRarity {
Common,
Rare,
Epic,
Legendary
}
public static void Main()
ItemRarity rarity = ItemRarity.Epic;
Console.WriteLine(Enum.GetName(typeof(ItemRarity), rarity));