{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eAs the premier men\u0027s professional basketball league in the world, the National Basketball Association (NBA) has witnessed many superstars, legendary teams and precious friendships. \u003cbr\u003e\u003cbr\u003e\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/04fdc4fa1ea40f1bd28bf977d030ccbd?v\u003d1714902572\"\u003e\u003cbr\u003e\u003cbr\u003eHere is a list of every season’s champion from the league\u0027s inception in 1946 to 2015.\u003cbr\u003e\u003cbr\u003eSeason Champion\u003cbr\u003e2015-16 Cleveland Cavaliers\u003cbr\u003e2014-15 Golden State Warriors\u003cbr\u003e2013-14 San Antonio Spurs\u003cbr\u003e2012-13 Miami Heat\u003cbr\u003e2011-12 Miami Heat\u003cbr\u003e2010-11 Dallas Mavericks\u003cbr\u003e2009-10 L.A. Lakers\u003cbr\u003e2008-09 L.A. Lakers\u003cbr\u003e2007-08 Boston Celtics\u003cbr\u003e2006-07 San Antonio Spurs\u003cbr\u003e2005-06 Miami Heat\u003cbr\u003e2004-05 San Antonio Spurs\u003cbr\u003e2003-04 Detroit Pistons\u003cbr\u003e2002-03 San Antonio Spurs\u003cbr\u003e2001-02 L.A. Lakers\u003cbr\u003e2000-01 L.A. Lakers\u003cbr\u003e1999-00 L.A. Lakers\u003cbr\u003e1998-99 San Antonio Spurs\u003cbr\u003e1997-98 Chicago Bulls\u003cbr\u003e1996-97 Chicago Bulls\u003cbr\u003e1995-96 Chicago Bulls\u003cbr\u003e1994-95 Houston Rockets\u003cbr\u003e1993-94 Houston Rockets\u003cbr\u003e1992-93 Chicago Bulls\u003cbr\u003e1991-92 Chicago Bulls\u003cbr\u003e1990-91 Chicago Bulls\u003cbr\u003e1989-90 Detroit Pistons\u003cbr\u003e1988-89 Detroit Pistons\u003cbr\u003e1987-88 L.A. Lakers\u003cbr\u003e1986-87 L.A. Lakers\u003cbr\u003e1985-86 Boston Celtics\u003cbr\u003e1984-85 L.A. Lakers\u003cbr\u003e1983-84 Boston Celtics\u003cbr\u003e1982-83 Philadelphia 76ers\u003cbr\u003e1981-82 L.A. Lakers\u003cbr\u003e1980-81 Boston Celtics\u003cbr\u003e1979-80 L.A. Lakers\u003cbr\u003e1978-79 Seattle Sonics\u003cbr\u003e1977-78 Washington Bullets\u003cbr\u003e1976-77 Portland Trail Blazers\u003cbr\u003e1975-76 Boston Celtics\u003cbr\u003e1974-75 Golden State Warriors\u003cbr\u003e1973-74 Boston Celtics\u003cbr\u003e1972-73 New York Knicks\u003cbr\u003e1971-72 L.A. Lakers\u003cbr\u003e1970-71 Milwaukee Bucks\u003cbr\u003e1969-70 New York Knicks\u003cbr\u003e1968-69 Boston Celtics\u003cbr\u003e1967-68 Boston Celtics\u003cbr\u003e1966-67 Philadelphia 76ers\u003cbr\u003e1965-66 Boston Celtics\u003cbr\u003e1964-65 Boston Celtics\u003cbr\u003e1963-64 Boston Celtics\u003cbr\u003e1962-63 Boston Celtics\u003cbr\u003e1961-62 Boston Celtics\u003cbr\u003e1960-61 Boston Celtics\u003cbr\u003e1959-60 Boston Celtics\u003cbr\u003e1958-59 Boston Celtics\u003cbr\u003e1957-58 St. Louis Hawks\u003cbr\u003e1956-57 Boston Celtics\u003cbr\u003e1955-56 Philadelphia Warriors\u003cbr\u003e1954-55 Syracuse Nats\u003cbr\u003e1953-54 Minneapolis Lakers\u003cbr\u003e1952-53 Minneapolis Lakers\u003cbr\u003e1951-52 Minneapolis Lakers\u003cbr\u003e1950-51 Rochester Royals\u003cbr\u003e1949-50 Minneapolis Lakers\u003cbr\u003e1948-49 Minneapolis Lakers\u003cbr\u003e1947-48 Baltimore Bullets\u003cbr\u003e1946-47 Philadelphia Warriors\u003cbr\u003e\u003cbr\u003e(quoted from http://www.nba.com/history/nba-season-recaps/)\u003cbr\u003e\u003cbr\u003eGiven the team name, it won’t be difficult for you to count how many times this team(with exactly the same name) has made amazing happen.\u003cbr\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line gives the number of test cases. Each case contains one string S representing the team to be queried.\u003cbr\u003eT\u0026lt;\u003d30.S consists of English letters, digits, punctuations and spaces. And 1\u0026lt;\u003dlength(S)\u0026lt;\u003d30.\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For each test case, output one line containing \"Case #x: y\", where x is the test case number (starting from 1) and y is the times this team has won the championship according to the list above.\u003cbr\u003e"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\r\nCleveland Cavaliers\r\nOklahoma City Thunder\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase #1: 1\r\nCase #2: 0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}