#!/usr/bin/env python3 import sys def main(): S = input() ans = 1 for i in S: if i == "a": ans += 1 else: break print("a" * ans) if __name__ == '__main__': main()