global main
extern printf
extern scanf
extern exit
section .text
main:
	push dword a
	push f1
	call scanf
	mov eax, dword [a]
	xor edx,edx
	mov ecx, $1
	start:
	inc edx
	imul ecx,edx
	cmp eax,ecx
	je end
	jmp start
	end:
	push edx
	push f1
	call printf
	call exit
	ret
section .data
f1: db "%d", 0
section .bss
a:resd 1
	