n, k = map(int,input().split()) print(n) for i in range(n): print(f'UPD {i} 0')