It depends on how those 3 parts relate to each other. If they execute independent of each other, then the big O of your program is O(largest of m, n, k). You haven't provided any code and have not explained what your 3 parts are doing, so there is no way of giving a concrete answer