#include <iostream> using namespace std; int main() { int v, t; cin >> v >> t; int s = v * t; cout << (s % 109 + 109) % 109; return 0; } /* a b (a % b + b) % b */