inl = list(input().strip()) i = inl.index('?') s = yukicoder print(s[i])