CF301C.Yaroslav and Algorithm

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Yaroslav likes algorithms. We'll describe one of his favorite algorithms.

  1. The algorithm receives a string as the input. We denote this input string as aa .
  2. The algorithm consists of some number of command. Сommand number ii looks either as sis_{i} >> wiw_{i} , or as sis_{i} <> wiw_{i} , where sis_{i} and wiw_{i} are some possibly empty strings of length at most 77 , consisting of digits and characters "?".
  3. At each iteration, the algorithm looks for a command with the minimum index ii , such that sis_{i} occurs in aa as a substring. If this command is not found the algorithm terminates.
  4. Let's denote the number of the found command as kk . In string aa the first occurrence of the string sks_{k} is replaced by string wkw_{k} . If the found command at that had form sks_{k} >> wkw_{k} , then the algorithm continues its execution and proceeds to the next iteration. Otherwise, the algorithm terminates.
  5. The value of string aa after algorithm termination is considered to be the output of the algorithm.

Yaroslav has a set of nn positive integers, he needs to come up with his favorite algorithm that will increase each of the given numbers by one. More formally, if we consider each number as a string representing the decimal representation of the number, then being run on each of these strings separately, the algorithm should receive the output string that is a recording of the corresponding number increased by one.

Help Yaroslav.

输入格式

The first line contains integer nn (1<=n<=100)(1<=n<=100) — the number of elements in the set. The next nn lines contains one positive integer each. All the given numbers are less than 102510^{25} .

输出格式

Print the algorithm which can individually increase each number of the set. In the ii -th line print the command number ii without spaces.

Your algorithm will be launched for each of these numbers. The answer will be considered correct if:

  • Each line will a correct algorithm command (see the description in the problem statement).
  • The number of commands should not exceed 5050 .
  • The algorithm will increase each of the given numbers by one.
  • To get a respond, the algorithm will perform no more than 200200 iterations for each number.

输入输出样例

  • 输入#1

    2
    10
    79
    

    输出#1

    10<>11
    79<>80
    
首页