a = input()

for i in range(len(a)):
    if a[i + 1] == '.':
        print(a[i])
        break