S and print it’s integer valueS cannot be converted to an integer, print Bad String1 <= |S| <= 6 : |S| is length of string SS is composed of either lowercase letters (a-z) or decimal digits (0-9)1
2
3
4
5
6
7
8
9
10
#!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
S = input()
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/python3
import math
import os
import random
import re
import sys
S = input().strip()
try:
print(int(S))
except ValueError:
print("Bad String")