fork download
  1. f = lambda y:0x10ea2c8dbb06c5619/5**((y+((y-22)/99-y/2002)*16)%28)%5+16
  2.  
  3. for year in (1912, 1914, 1984, 1996, 2063, 2150, 2199, 2233):
  4. print year, '->', f(year)
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
1912 -> 19
1914 -> 16
1984 -> 17
1996 -> 19
2063 -> 19
2150 -> 16
2199 -> 18
2233 -> 18