n,m=gets.split.map &:to_i;p (1..n).sum{|a|(1..m).sum{|b|a.lcm b}}%998244353