Can make out '505' BADEN but my grasp of German, especially the difficult-to-read writing evades me. Hopefully a more skilled member will be able to fill in the details.
543 (at left) and 505 (at right) of Abt. 3 on transport train seen passing through Amagne-Lucquy rail station (east of Rethel, Northern France) on May 30th, 1918.