#include <iostream>

int main() {
    int wynik = 0;
    for (int i = 0; i < 25; ++i) {
        for (int j = 0; j < 25; ++j) {
            wynik += (i + j) % 256;
            std::cout << (i + j) % 256;
        }
        std::cout << std::endl;
    }
    std::cout << std::endl;std::cout << std::endl;std::cout << std::endl;
    wynik /= 625;
    std::cout << wynik << std::endl;
    return 0;
}