Olesya loves numbers consisting of n digits, and Rodion only likes numbers that are divisible by t. Find some number that satisfies both of them.

Your task is: given the n and t print an integer strictly larger than zero consisting of n digits that is divisible by t. If such number doesn't exist, print - 1.

Input

The single line contains two numbers, n and t (1 ≤ n ≤ 100, 2 ≤ t ≤ 10) — the length of the number and the number it should be divisible by.

Output

Print one such positive number without leading zeroes, — the answer to the problem, or  - 1, if such number doesn't exist. If there are multiple possible answers, you are allowed to print any of them.

Examples
input
3 2
output
712
 #include <iostream>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <sstream>
using namespace std;
const int maxn = 1e9+;
#define N 10005
int main()
{
int n,t,i;
scanf("%d %d", &n, &t);
if(n==&&t==){
printf("-1\n");
}
else{
if(t==){
t=;
}
printf("%d",t);
for(i=;i<n-; i++) {
printf("");
}
printf("\n");
}
return ;
}

最新文章

  1. SQL Server-外部联接基础回顾(十三)
  2. Mybatis总结
  3. TID大会学习心得之敏捷软件架构-微服务
  4. JavaScript的陷阱
  5. 【ios】使用Block对POST异步操作的简单封装
  6. 扩展服务 修改新增Service的默认主题
  7. JavaScript中创建字典对象(dictionary)实例
  8. w3c subscribe
  9. Android 所有颜色代码
  10. ASP.NET网站实现中英文转换(本地化资源)
  11. 微信小程序- 生成二维码
  12. JDK 中的设计模式应用实例
  13. MFC中CFileDialog用法
  14. python之路-----python操作 mysql
  15. uva1673(后缀自动机)
  16. BZOJ2843 极地旅行社 LCT
  17. Redis Cluster集群搭建&lt;原&gt;
  18. ASCII对照表
  19. 《剑指offer》面试题39 二叉树的深度(java)
  20. html学习第一讲(内容html常规控件的的使用)

热门文章

  1. leetcode—js—Add Two Numbers
  2. 类加载机制与JVM调优命令
  3. 安装Matlab R2017a 出现 “弹出DVD1 并插入DVD2” 解决办法超简单
  4. 从零开始一个个人博客 by asp.net core and angular(一)
  5. The Ether 靶场
  6. springboot专用的注解
  7. UTF-8(bom-non)
  8. MySQL架构和MySQL索引
  9. Hadoop学习之路(6)MapReduce自定义分区实现
  10. Linux学习笔记:磁盘分区