#include <iostream>
#include <vector>
int main() {
std::vector<int> sequence = {10, 3, 6, 10, 6, 12, 10, 9, 18, 19, 21, 15, 19, 24, 21, 19, 27, 27, 28, 30};
int N;
std::cout << "Nhap so tu nhien N: ";
std::cin >> N;
int termN = sequence[N - 1];
int sum = 0;
for (int i = 0; i < N; i++) {
sum += sequence[i];
}
std::cout << "So hang thu " << N << " cua day so la: " << termN << std::endl;
std::cout << "Tong cua " << N << " so hang dau tien cua day so la: " << sum << std::endl;
return 0;
}