#include <stdio.h> int main( void ) { long n, x; scanf( "%ld%ld", &n, &x ); long u; for( ; scanf("%ld",&u), u<=x; ); printf( "%ld", u ); }