foreach y [read stdin] {puts "$y is[expr $y%($y%50?4:16)?{ not}:{}] a leap year."}