Input (grade 12): Castling consists of moving the king two squares on its first rank toward either one of the original rooks, then moving the rook onto the square over which the king crossed.
Output (grade 11): Castling consists of moving the king two squares on its first rank toward either one of the first rooks, then moving the rook onto the square over which the king crossed.