func main() var n: int :: cui@inputInt() var m: int :: cui@inputInt() var quotient: int var remainder: int do quotient :: n / m do remainder :: n % m do cui@print("\{quotient}") if(remainder = 0) do cui@print("\n") ret end if while(remainder > 1) do n :: m do m :: remainder do quotient :: n / m do remainder :: n % m do cui@print(" \{quotient}") end while if(remainder <> 0) do n :: m do m :: remainder do quotient :: n / m do remainder :: n % m do cui@print(" \{quotient}") end if do cui@print("\n") end func