#include int check() { int Yellow, Blue, Red, Ivory, Green; int Norwegian, Ukrainian, Englishman, Spaniard, Japanese; int Water, Tea, Milk, OrangeJuice, Coffee; int Kools, Chesterfield, OldGold, LuckyStrike, Parliament; int Fox, Horse, Snails, Dog, Zebra; // limits. if (Yellow<1 || Yellow>5) return 0; if (Blue<1 || Blue>5) return 0; if (Red<1 || Red>5) return 0; if (Ivory<1 || Ivory>5) return 0; if (Green<1 || Green>5) return 0; if (Norwegian<1 || Norwegian>5) return 0; if (Ukrainian<1 || Ukrainian>5) return 0; if (Englishman<1 || Englishman>5) return 0; if (Spaniard<1 || Spaniard>5) return 0; if (Japanese<1 || Japanese>5) return 0; if (Water<1 || Water>5) return 0; if (Tea<1 || Tea>5) return 0; if (Milk<1 || Milk>5) return 0; if (OrangeJuice<1 || OrangeJuice>5) return 0; if (Coffee<1 || Coffee>5) return 0; if (Kools<1 || Kools>5) return 0; if (Chesterfield<1 || Chesterfield>5) return 0; if (OldGold<1 || OldGold>5) return 0; if (LuckyStrike<1 || LuckyStrike>5) return 0; if (Parliament<1 || Parliament>5) return 0; if (Fox<1 || Fox>5) return 0; if (Horse<1 || Horse>5) return 0; if (Snails<1 || Snails>5) return 0; if (Dog<1 || Dog>5) return 0; if (Zebra<1 || Zebra>5) return 0; // colors are distinct for all 5 houses: if (((1<