#include <iostream>
using namespace std;
int main() {
unsigned num;
cin >> num;
if (num < 10 || 99 < num) exit(0);
const auto a = num / 10;
const auto b = num % 10;
cout
<< a << '\n'
<< b << '\n'
<< a + b << '\n'
<< a * b << '\n';
}