UP main.cpp (+ program time limitation)