spoj#MAGIC4. Magic Program IV