# -*- coding: utf8

for a in range(4):
    for b in range(4):
       print a,b
