If you do these calculations by hand, the complexity will be more obvious because each operation will be smaller.