??? and ???, 43 bytes, vulnerablesafe
output: 2147483647
both | -print /*"\r"%S #*/|2**31-1 |
only A | -print %S |
only B | 2**31-1 |
neither |
hint:
none of the languages are esoteric or recreational, both are practical and one of them is even quite popular, the other one is free open source but not available on any service like TIO, it's a script for a domain-specific tool