#include <iostream>
using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int count = 0;  
    int total = 0;  
    =
    if (a >= 10 && a <= 20) {
        count++;
        total += a;
    }
    if (b >= 10 && b <= 20) {
        count++;
        total += b;
    }
    if (c >= 10 && c <= 20) {
        count++;
        total += c;
    }
    cout << count << " " << total << endl;
    
    return 0;
}
/**************************************************************
	Problem: 1866
	User: fuhoubin
	Language: C++
	Result: Compile Error
****************************************************************/