#include <iostream>
#include <cmath>
using namespace std;
typedef long long ll;
ll check(ll n){
return (n % 11 == 0) + (n % 13 == 0) + (n % 17 == 0) + (n % 19 == 0);
}
int main(){
ll cnt = 0, res = 0;
for(ll i = 11000; i <= 22000; i++){
cnt += check(i) == 2;
if(res == 0 && check(i) == 2)
res = i;
}
cout << cnt << res;
}