simulate operation on blocks
add comment
another version of UVa 101