static String[] filter(InputStream in) {
		String[]rel=null;
		try (BufferedReader br=new BufferedReader(new InputStreamReader(in));){
			String line;
			Map<String, String> map=new LinkedHashMap<>();
			while ((line=br.readLine())!=null) {
				String[]items=line.trim().split("\\s+");
				byte[] vals=new byte[items.length];
				for(int i=0;i<items.length;++i)vals[i]=Byte.parseByte(items[i]);
				Arrays.sort(vals);
				String key=Arrays.toString(vals);
				String val=map.get(key);
				if (val==null) map.put(key, line);
			}
			rel=map.entrySet().stream().map(e->e.getValue()).toArray(size->new String[size]);	
		} catch(IOException e) {
			e.printStackTrace();
		}
		return rel;
	}