Changed my approach with using lists due to the restrictions. Solved it with an if and if-else-statement.