P15914 [HackerEarth] Richard and Daniel have been very naughty throughout the day. So their computer teacher gave them a problem and if they are able to solve it, he will reward the two of them.
普及
题目描述

Richard and Daniel have been very naughty throughout the day. So their computer teacher gave them a problem and if they are able to solve it, he will reward the two of them.
They are given a pair of words and their task is to determine whether the two words are the same or not.
• If the two words match, print EXACT
• If the two words don’t match, print NON EXACT and also, the count of the letters of the larger word that do not match with respect to position.
Assume that the words contain only lower case letters. The maximum word length is 10.

Input: The first line of the data set for this problem is an integer that represents the number of pairs of words in the list(testcases T). Each word is on a separate line.

Output: Output EXACT or NON EXACT with the count. All letters are lower case.The output is to be formatted exactly like that for the sample output given below.

Constraints

T>0 & T ≤ 30

SAMPLE INPUT
3
cardboard
cardpaper

oranges
lemons

white
white

SAMPLE OUTPUT
Non Exact 5
Non Exact 7
Exact

输入格式

见题面

输出格式

见题面

样例输入
30 anecdote antidote farther further soil toil minute minute gardening hardening their there phenomena phenomena tragedy tragedy thunderstorm thunderstorms galliant valliant garden pardon peace leave harmony harmony money honey booth tooth morosophy misosophy physiosophy philosophy capilotade capitalism bump lump epopoean epopoeist biology zoology figurehead figurehead epomania hypomania jackstaff jackyard phonomania photomania panache panache indelible incredible exhaust exhaust bourgeoisie bourgeois hoipolloi hoipolloi
样例输出
Non Exact 3 Non Exact 2 Exact Non Exact 3 Non Exact 4 Non Exact 3 Non Exact 2 Non Exact 4 Non Exact 3 Non Exact 1