import java.util.Scanner // fun _Do() { val H = scan.nextInt() val N_ = scan.nextInt() var c = 1 for(i in 0 until N_-1){ if( H < scan.nextInt() ) c+=1 } val end = when(c%10){ 1->"st" 2->"nd" 3->"rd" else->"th" } print(c) println(end) } var scan = Scanner(System.`in`) fun main( argv : Array ) { _Do() } fun strings(N:Int):Array = Array(N,{scan.next()}) fun ints(N:Int):Array = Array(N,{scan.nextInt()}) fun longs(N:Int):Array = Array(N,{scan.nextLong()})