public static void main(String[] args) {

		Controller c = new Controller();

		while (true) {
			int chk = c.searchGoods();

			if (chk == -99) {
				c.recordGoods();
			} else {
				c.addGoods(chk);
			}
			System.out.println("̓`[͂܂H\n(y/n)>");
			try {
				String str = c.inputMess();
				if (str.equals("y")) {
					continue;
				} else {
					break;
				}
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		System.out.println("VXeI܂B");

	}