书目
题号:NC214824
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

我的书已经装满了一个书架,但是依旧杂乱无章,导致我总是找不到自己需要的书。
写个程序帮我整理一下书目吧!

输入描述:

书目不超过10个。
每个分类的列表不超过30本书,以“ 0”行结尾。 
一本书的描述仅包含大写字母,数字,“ /”和空格,并且最多不超过100个字符。

输出描述:

对于每个书目,首先打印“ Case n:”(n从1开始),然后根据需要打印新列表。
示例1

输入

复制
history/chinese_his
history/japan_his
0
computer/communication
computer/net
computer/app
0

输出

复制
Case 1:
history
    chinese_his
    japan_his
Case 2:
computer
    app
    communication
    net