from sys import stdin mod1, mod2 = map(int, stdin.readline().split()) print 2 print 1, mod1 * mod2 print 3, mod1 * mod2 * 2