## Pyth, <s>22</s> 19 bytes *Thanks to @isaacg for three bytes!* qFcMsMM,Jcz\/.-M_BJ Explanation: qFcMsMM,Jcz\/.-M_BJ Implicit: z=input(). , two-element list Jcz\/ J = split z on ',' _BJ Bifurcate reverse: [J,reversed(J)] .-M map multiset difference of elements in both lists this gives the multiset difference both ways ,Jcz\/.-M_BJ On input 1019/5095: [['1019','5095'], ['11','55']] sMM convert all strings to numbers cM map by float division qF fold equality Try it [here](https://pyth.herokuapp.com/?code=qFmcFsMd%2CJcz%5C%2Fm.-Fd_BJ&input=1019%2F5095&debug=1).