#include <iostream>
typedef long long ll;
ll _modmul(ll a, ll b, ll mod) {
long double res = a;
res *= b;
ll c = ll(res / mod);
a *= b;
a -= c * mod;
a %= mod;
if (a < 0) a += mod;
return a;
}
int main()
{
ll a=333333333333333333LL;
ll b=555555555555555555LL;
ll mod=1000000007L;
a%=mod;
b%=mod;
ll res=_modmul(a,b,mod);
std::cout << res << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdHlwZWRlZiBsb25nIGxvbmcgbGw7CgpsbCBfbW9kbXVsKGxsIGEsIGxsIGIsIGxsIG1vZCkgewogIGxvbmcgZG91YmxlIHJlcyA9IGE7CiAgcmVzICo9IGI7CiAgbGwgYyA9IGxsKHJlcyAvIG1vZCk7CiAgYSAqPSBiOwogIGEgLT0gYyAqIG1vZDsKICBhICU9IG1vZDsKICBpZiAoYSA8IDApIGEgKz0gbW9kOwogIHJldHVybiBhOwp9CgppbnQgbWFpbigpCnsKICAgIGxsIGE9MzMzMzMzMzMzMzMzMzMzMzMzTEw7CiAgICBsbCBiPTU1NTU1NTU1NTU1NTU1NTU1NUxMOwogICAgbGwgbW9kPTEwMDAwMDAwMDdMOwogICAgYSU9bW9kOwogICAgYiU9bW9kOwogICAgbGwgcmVzPV9tb2RtdWwoYSxiLG1vZCk7CiAgICBzdGQ6OmNvdXQgPDwgcmVzIDw8IHN0ZDo6ZW5kbDsKfQ==