Khalid, a genie close to graduation, is permitted to try out a lamp of his own. Unfortunately, he forgets to tell his first master the most important rule: humans are only entitled to three wishes, with no wishing for more. When his master wishes for an infinite number of wishes, Khalid is stuck, unless he can find a princess to save him.