program main
  implicit none
  integer A,B,T,i,sumkukki
  sumkukki = 0
  read(*, *) A, B, T
  do i = 1,T
    if (mod(i,A) == 0) then
      sumkukki = sumkukki + B
    end if
  end do 

  write(* ,'(i0)') sumkukki
end program main
