Python
2
Вклад в тег
s = input().split()
for i in s:
if len(i) > 2 and i[-2] == 'x':
a = int(i[:-2])
elif len(i) == 2 and i[0] == 'x':
a = 1
elif i[-1] == 'x':
b = int(i[:-1]) if len(i) > 1 else 0
elif i != '0' and i.isdigit():
c = int(i)
print(a, b, c)
import sqlite3