import Data.List
test [a, b, c, d, e, f, g, h, i, j] =
a * (b * 10 + c) + (d * 100 + e * 10 + f) == g * 1000 + h * 100 + i * 10 + j
aW1wb3J0IERhdGEuTGlzdAoKbWFpbiA9IHByaW50ICQgc29sdmUKCnNvbHZlID0gbGVuZ3RoICQgZmlsdGVyIHRlc3QgJCBwZXJtdXRhdGlvbnMgWzAuLjldCgp0ZXN0IFthLCBiLCBjLCBkLCBlLCBmLCBnLCBoLCBpLCBqXSA9CglhICogKGIgKiAxMCArIGMpICsgKGQgKiAxMDAgKyBlICogMTAgKyBmKSA9PSBnICogMTAwMCArIGggKiAxMDAgKyBpICogMTAgKyBqCg==