a=input();b=input();r=i=0;
while not r:r=a[:i]+b;r*=r[:len(a)]==a;i+=1
print(r)
Jwhf}z._T+RJ._z
Jw+hf}z._+TJ._zJ
Jw+hfq<+TJlzz._zJ
Jw+hfq<+TJlzz+k._zJ

Traceback (most recent call last): File "./code", line 3, in <module> print(a(s[0])-(s=='三十八'))*10+a(s[-1]) TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

a='十一二三四五六七八九'.find
s=input()
print(a(s[0])-(s=='三十八'))*10+a(s[-1])
Sat Apr 29 19:17:22 2017
lua
a=io.read;print(math.ceil(a()+a()))
Sat Apr 29 19:16:09 2017
lua

3.0
instead of
3
a=io.read;print(a()+a())
Sat Apr 29 19:14:25 2017
ruby
a=gets.upcase.gsub(' ','')
p a.sum-64*a.length
Sat Apr 29 19:13:01 2017
ruby

146
instead of
98
a=gets.upcase.gsub(' ','')
p a.sum-58*a.length
Sat Apr 29 19:04:47 2017
python2

File "./code", line 1 p 1\n23\n34\234 ^ SyntaxError: invalid syntax

p 1\n23\n34\234
Sat Apr 29 19:01:28 2017
python2

1
23
34œ
instead of
1
23
34
234
print'1\n23\n34\234'
Sat Apr 29 19:00:52 2017
php
0:2:3
Sat Apr 29 18:58:57 2017
python2
print"\n".join(input().split())
Sat Apr 29 18:58:09 2017
python3
for i in input().split():print(i.replace('"',""))
Sat Apr 29 18:56:52 2017
python2
print input()+input()
Sat Apr 29 18:55:33 2017
pyth
 .vCim-id64^964 2cCM"඾莻槫胨蒲㢽䧎㮼棭⿳⿍痪ⷍ自ⷱ礎枾薾㛩㶰滩诪㮹䬌磭㶰緓枰䫪㮹䬌嗯僝蒰玱㏪械㛀"3^4 8
Sun Apr 2 04:52:22 2017
Tac
php


              
instead of
zxcv
asdf
qwer
<?php echo join(array_reverse(array_map(fgets(STDIN))));
Sun Apr 2 04:50:18 2017
Tac
php


              
instead of
zxcv
asdf
qwer
<?php
echo join('
',array_reverse(array_map(trim,fgets(STDIN))));
Tue Jan 10 11:57:52 2017
python3
print(sum(ord(a)-64 for a in input().upper().replace(" ","")))