Let's consider a table consisting of n rows and n columns. The cell located at the intersection of i-th row and j-th column contains numberi × j. The rows and columns are numbered starting from 1.

You are given a positive integer x. Your task is to count the number of cells in a table that contain number x.

Input

The single line contains numbers n and x (1 ≤ n ≤ 105, 1 ≤ x ≤ 109) — the size of the table and the number that we are looking for in the table.

Output

Print a single number: the number of times x occurs in the table.

Examples
input
10 5
output
2
input
6 12
output
4
input
5 13
output
0


Note

A table for the second sample test is given below. The occurrences of number 12 are marked bold.

 #include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
using namespace std;
#define ll long long
int main()
{
ll n,x;
while(cin>>n>>x){
int s=;
for(ll i=;i<=n;i++){
if(x%i==&&x<=i*n) s++;
}
cout<<s<<endl;
}
return ;
}

最新文章

  1. Qt 拷贝文件目录
  2. 四则运算GUI设计2.0
  3. python 常见排序实例
  4. MySQL主从复制(Master-Slave)与读写分离(MySQL-Proxy)实践
  5. Android项目结构分析
  6. cocos2d-x之多点触碰初试
  7. 夺命雷公狗---DEDECMS----23dedecms修改内容页面展示的信息
  8. (一)SAPI简述
  9. 使用SQLServer 2008的CDC功能实现数据变更捕获
  10. [luogu P3801] 红色的幻想乡 [线段树][树状数组]
  11. 阿里云部署SSL证书详解
  12. Nginx的虚拟主机配置
  13. (动规 或 最短路)Help Jimmy(poj 1661)
  14. activiti流程
  15. Splash Lua 脚本
  16. mysql navicat 及命令行 创建、删除数据库
  17. 使用spring AOP获得session的思路
  18. CCNA2.0笔记_路由分类
  19. iptables防火墙工作原理
  20. nodejs获取ASP.Net WebAPI(IIS Windows验证)

热门文章

  1. Python requests 调Jenkins登录接口,返回404,但请求地址、请求头、消息主题和抓包的内容都一样
  2. java设计模式学习笔记——里氏替换原则
  3. NServiceBus 入门到精通(一)
  4. List泛型
  5. for循环嵌套练习题or99乘法表
  6. 并发编程之J.U.C的第二篇
  7. 一套很有意思的C语言测试题目
  8. MySQL基础(7) | 触发器
  9. Html介绍,认识html标签
  10. 循环删除List集合的元素