#!/usr/bin/env python3 import sys a = [0] * 4 for i in range(len(a)): best_hit = -1 correct_digit = None for j in range(10): a[i] = j print(*a) sys.stdout.flush() x, _ = map(int,input().split()) if best_hit < x: best_hit = x correct_digit = j a[i] = j print(*a)