public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedInputStream(System.in));
		String format1 = "<a href=\"/questions/([0-9]+).*>(.*)</a>";
		String format2 = ".*class=\"relativetime\">(.*)</span>";
		Pattern pattern1 = Pattern.compile(format1);
		Pattern pattern2 = Pattern.compile(format2);
		ArrayList<String>ID = new ArrayList<String>();
		ArrayList<String>question = new ArrayList<String>();
        	ArrayList<String>time = new ArrayList<String>();
		while(in.hasNext()){
			String assessed = in.nextLine();
			Matcher match = pattern1.matcher(assessed);
			Matcher match2 = pattern2.matcher(assessed);
			while(match.find()){
				match.groupCount();
				ID.add(match.group(1));
				question.add(match.group(2));
            		}
            		while(match2.find()){
                		match2.groupCount();
                		time.add(match2.group(1));
            		}
		}
		for(int j = 0;j<ID.size();j++){
			System.out.println(ID.get(j) + ";"+question.get(j)+";" + time.get(j));
		}
    }