Question Is it possible to apply associativity to remove the x from this?

main = 
  getLine >>= 
    (\x -> 
       (getLine >>= 
          putStrLn >> 
             return x) 
        >>= putStrLn
    )