1. 8
2.
#include <iostream>
int main()
{
int n;
std::cin >> n;
for(; n > 10; n /= 10);
std::cout << n;
return 0;
}