public int howLong(int x, int y, String[] obstacles) {
		ArrayList<Obj> list = new ArrayList<Obj>();
		for (String tmp : obstacles) {
			String[] split = tmp.split(" ");
			Obj e = new Obj();
			list.add(e);
			e.y = Integer.valueOf(split[0]);
			e.x1 = Integer.valueOf(split[1]);
			e.x2 = Integer.valueOf(split[2]);
		}
		Collections.sort(list);
		int time = 0;
		for (Obj obj : list) {
			if (obj.y <= y && obj.x1 <= x && x <= obj.x2) {
				x = obj.x2;
				time += 5 + (y - obj.y);
				y= obj.y;
			}
		}
		time += y;
		return time;
	}