gets;puts gets=~/(..?)\1/?:YES: :NO