write num as int for example