{"raw_statement":[{"iden":"statement","content":"Santa Claus decided to disassemble his keyboard to clean it. After he returned all the keys back, he suddenly realized that some pairs of keys took each other's place! That is, Santa suspects that each key is either on its place, or on the place of another key, which is located exactly where the first key should be.\n\nIn order to make sure that he's right and restore the correct order of keys, Santa typed his favorite patter looking only to his keyboard.\n\nYou are given the Santa's favorite patter and the string he actually typed. Determine which pairs of keys could be mixed. Each key must occur in pairs **at most once**."},{"iden":"input","content":"The input consists of only two strings _s_ and _t_ denoting the favorite Santa's patter and the resulting string. _s_ and _t_ are not empty and have the same length, which is at most 1000. Both strings consist only of lowercase English letters."},{"iden":"output","content":"If Santa is wrong, and there is no way to divide some of keys into pairs and swap keys in each pair so that the keyboard will be fixed, print «_\\-1_» (without quotes).\n\nOtherwise, the first line of output should contain the only integer _k_ (_k_ ≥ 0) — the number of pairs of keys that should be swapped. The following _k_ lines should contain two space-separated letters each, denoting the keys which should be swapped. All printed letters must be distinct.\n\nIf there are several possible answers, print any of them. You are free to choose the order of the pairs and the order of keys in a pair.\n\nEach letter must occur at most once. Santa considers the keyboard to be fixed if he can print his favorite patter without mistakes."},{"iden":"examples","content":"Input\n\nhelloworld\nehoolwlroz\n\nOutput\n\n3\nh e\nl o\nd z\n\nInput\n\nhastalavistababy\nhastalavistababy\n\nOutput\n\n0\n\nInput\n\nmerrychristmas\nchristmasmerry\n\nOutput\n\n\\-1"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":null,"simple_statement":null,"has_page_source":false}