UF with standard input (K = 100)