{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eSeptember 10th is forester day. On this occasion Magic forest dwellers decided to make a party. Kuzma beaver is assigned to take care about intellectual games. Kuzma has invented at his opinion quite interesting game.\u003c/p\u003e\n\n\u003cp\u003eRules of the game are simple. Master announces positive integer \u003cstrong\u003eN\u003c/strong\u003e. Player needs to calculate product of digits for each positive integer up to N and report the greatest product.\u003c/p\u003e\n\n\u003cp\u003eAll answers should be known beforehand to allow interactive communication during a game. This causes problems since \u003cstrong\u003eN\u003c/strong\u003e could be relatively big (\u003cstrong\u003e1\u003c/strong\u003e ≤ \u003cstrong\u003eN\u003c/strong\u003e ≤ \u003cstrong\u003e2000000000\u003c/strong\u003e). Kuzma is not good using computers; he asks you to write a program which having positive integer \u003cstrong\u003eN\u003c/strong\u003e will find correct answer.\u003c/p\u003e\n\n\u003cp\u003e\u003ch2\u003eInput\u003c/h2\u003e\u003c/p\u003e\n\n\u003cp\u003eEach line at input contains integer \u003cstrong\u003eN\u003c/strong\u003e.\u003c/p\u003e\n\n\u003cp\u003e\u003ch2\u003eOutput\u003c/h2\u003e\u003c/p\u003e\n\n\u003cp\u003eCorresponding line at output should contain greatest product for this \u003cstrong\u003eN\u003c/strong\u003e.\u003c/p\u003e\n\n"}},{"title":"Example","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\u003e1\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}