#!/usr/bin/env perl use strict; use warnings; my $n = <>; chomp $n; my $c = 0; my %h; for (my $i = 1; $i < sqrt($n) + 1; $i++) { next if $n < $i; if ($n % $i == 0) { my $m = $n / $i; $h{"$m$i"} = 1; $h{"$i$m"} = 1; } } print int(keys %h);