""" 2N種類必要 最小で0 最大で2N なので、2N+1種類の数字が作れる """ import sys from sys import stdin N = int(input()) if N == 2: print ("01") print ("22") else: print ("No")