Be Wary of Literal Translation
In New York City, in the 1960's, an "automat" was a cafeteria where you could lunch on a sandwich and a piece of pie and a cup of coffee, all dispensed from machines, without the annoyance of human intervention. It was viewed as the height of modernity in the time of the Mad Men.
In Moscow or Petersburg or Rostov-on-Don, an «автомат» is a Kalashnikov, an AK-47 assault rifle.
Marx would say "To each according to his needs."