Replaced print{1,2} by universal print

Signed-off-by: Oleg Bulatov <dmage@yandex-team.ru>