Mock CCC '19 Contest 1 J3 - Mathematical Math

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 64M

Problem type

You are given a string from your friend. You want to know whether it is a math string, an English string, or other.

A math string is a string that only contains numbers (0, 1, 2, 3, 4, 5, 6, 7, 8, 9).

A English string is a string that only contains lowercase Latin characters.

Given a string of alphanumeric characters, determine if the string is a math string, a English string, or other.

Input Specification

The first line will contain the string S (1 \le |S| \le 20). It is guaranteed S will only contain lowercase alphanumerical characters.

Output Specification

  • If the string is a math string, output Math.
  • If the string is an English string, output English.
  • Otherwise, output Other.


For 5/15 of the points, |S| \le 3

Sample Input 1


Sample Output 1


Sample Input 2


Sample Output 2



There are no comments at the moment.