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