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 } println(when(c){ 1->"1st" 2->"2nd" 3->"3rd" else -> "${c}th" }) } 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()})