from array import * n, T = map(int, input().split()) P = array('f'); R = array('b'); C = array('b') B = array('i', [1<