okay this combinatorics is epic
Source: Moldova TST 2019
March 10, 2019
combinatorics
Problem Statement
Let be a positive integer. Numbers are written in a row in an arbitrary order. Determine the smalles positive integer with the property: everytime it is possible to delete numbers from those written on the table, such that the remained numbers are either in an increasing or decreasing order.