P11855 [AOJ] Compressed Formula
普及
题目描述

Example

Input

1
5 1

Output

11111

输入格式

见题面

输出格式

见题面

样例输入
1 5 1
样例输出
11111