#include <stdio.h>
int min(int a, int b){ return a < b ? a : b; }
int abs(int x){ return x < 0 ? -x : x; }
int main(){
int n, m, k;
scanf("%d%d%d", &n, &m, &k);
int res = 1e9;
for(int i=1; i<=n; i++){
int a;
scanf("%d", &a);
if(a != 0 && a <= k) res = min(res, abs(i-m));
}
printf("%d", 10*res);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWluKGludCBhLCBpbnQgYil7IHJldHVybiBhIDwgYiA/IGEgOiBiOyB9CmludCBhYnMoaW50IHgpeyByZXR1cm4geCA8IDAgPyAteCA6IHg7IH0KCmludCBtYWluKCl7CiAgICBpbnQgbiwgbSwgazsKICAgIHNjYW5mKCIlZCVkJWQiLCAmbiwgJm0sICZrKTsKICAgIGludCByZXMgPSAxZTk7CiAgICBmb3IoaW50IGk9MTsgaTw9bjsgaSsrKXsKICAgICAgICBpbnQgYTsKICAgICAgICBzY2FuZigiJWQiLCAmYSk7CiAgICAgICAgaWYoYSAhPSAwICYmIGEgPD0gaykgcmVzID0gbWluKHJlcywgYWJzKGktbSkpOwogICAgfQogICAgcHJpbnRmKCIlZCIsIDEwKnJlcyk7CiAgICByZXR1cm4gMDsKfQ==