import java.util.*;
import java.util.regex.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
String s
= "Overtime=true,TransportCosts=1= 1,two, three,Billable=7200"; Map
<String,String
> map
= getAttributes
(s
); System.
out.
println(entry.
getKey() + "=" + entry.
getValue()); }
//System.out.println(map);
}
public static Map
<String, String
> getAttributes
(String attributes
) { Map
<String, String
> attr
= new HashMap
<>(); Matcher m = Pattern.compile("(\\w+)=(.*?)(?=,\\w+=|$)").matcher(attributes);
while (m.find()) {
attr.put(m.group(1), m.group(2));
}
return attr;
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4Lio7CmltcG9ydCBqYXZhLmxhbmcuKjsKaW1wb3J0IGphdmEuaW8uKjsKCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTdHJpbmcgcyA9ICJPdmVydGltZT10cnVlLFRyYW5zcG9ydENvc3RzPTE9IDEsdHdvLCB0aHJlZSxCaWxsYWJsZT03MjAwIjsKCQlNYXA8U3RyaW5nLFN0cmluZz4gbWFwID0gZ2V0QXR0cmlidXRlcyhzKTsKCQlmb3IgKE1hcC5FbnRyeSBlbnRyeSA6IG1hcC5lbnRyeVNldCgpKSB7CgkJCVN5c3RlbS5vdXQucHJpbnRsbihlbnRyeS5nZXRLZXkoKSArICI9IiArIGVudHJ5LmdldFZhbHVlKCkpOwoJCX0KCQkvL1N5c3RlbS5vdXQucHJpbnRsbihtYXApOwoJfQoJCglwdWJsaWMgc3RhdGljIE1hcDxTdHJpbmcsIFN0cmluZz4gZ2V0QXR0cmlidXRlcyhTdHJpbmcgYXR0cmlidXRlcykgewoJCU1hcDxTdHJpbmcsIFN0cmluZz4gYXR0ciA9IG5ldyBIYXNoTWFwPD4oKTsKCQlNYXRjaGVyIG0gPSBQYXR0ZXJuLmNvbXBpbGUoIihcXHcrKT0oLio/KSg/PSxcXHcrPXwkKSIpLm1hdGNoZXIoYXR0cmlidXRlcyk7CgkJd2hpbGUgKG0uZmluZCgpKSB7CgkJCWF0dHIucHV0KG0uZ3JvdXAoMSksIG0uZ3JvdXAoMikpOwoJCX0KCQlyZXR1cm4gYXR0cjsKCX0KfQ==