#include <iostream>

using namespace std;

int isYear(int n)
{
    if (n % 400 == 0 || n % 4 == 0 && n % 100 != 0)
        return 366;
    return 365;
}

int main()
{

    int res = 0;
    for (int i = 1922; i <= 2020; i++)
        res += isYear(i);

    res -= 22;
    cout << res * 60 * 24;

    return 0;
}
