#include <iostream>
#include <vector>
using namespace std;

int main() {
    vector<bool> a(189, false);     //最多有188角邮资
    for (int i = 0; i <= 5; i++) {  //5张8角邮票
        for (int j = 0; j <= 4; j++) { //4张1元邮票
            for (int k = 0; k <= 6; k++) { //6张1元8角邮票
                a[i * 8 + j * 10 + k * 18] = true;
            }
        }
    }
    int count = 0;
    for (int i = 1; i <= 188; i++) {
        if (a[i]) {
            count++;
        }
    }
    cout << count << endl;
    return 0;
}
// 64 位输出请用 printf("%lld")