{"raw_statement":[{"iden":"statement","content":"You have a list of $n$ books. You want to read one complete book, but you want to read as few pages as possible. You're given the list of how many pages each book has. Figure out the minimum number of pages that you have to read, reading at least one complete book.\n\nThe first line of input contains a positive integer $n$: the number of books. The next line contains $n$ space-separated integers: the number of pages of each book.\n\nOutput a single positive integer $p$: the minimum number of pages that you have to read, if you read at least one complete book.\n\n"},{"iden":"input","content":"The first line of input contains a positive integer $n$: the number of books. The next line contains $n$ space-separated integers: the number of pages of each book."},{"iden":"output","content":"Output a single positive integer $p$: the minimum number of pages that you have to read, if you read at least one complete book."},{"iden":"examples","content":"Input5\n179 173 275 865 180\nOutput173\nInput5\n500 450 300 299 100\nOutput100\n"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the number of books.  \nLet $ P = (p_1, p_2, \\dots, p_n) $ be a sequence of positive integers, where $ p_i $ is the number of pages in book $ i $.\n\n**Constraints**  \n$ n \\geq 1 $, and $ p_i \\geq 1 $ for all $ i \\in \\{1, \\dots, n\\} $.\n\n**Objective**  \nFind $ \\min_{i \\in \\{1, \\dots, n\\}} p_i $.","simple_statement":"Find the book with the fewest pages and output that number.","has_page_source":false}