Write a program to calculate the number of digits and letters in a string. The program should take a string as input and output two integers: the first representing the number of digits and the second representing the number of letters.
Example:
Input: "hello123"
Output: [3, 5]
Input: "2023world"
Output: [4, 5]